aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-25 21:36:50 +0300
committerGravatar Vitaly Takmazov2016-07-27 13:56:09 +0300
commit69af3f60d399157a8951988fa2f91d29c553fbb5 (patch)
tree8c38def00d1b3dc5e38cf421870afb62f3a823ea /juick-ws/webpack.config.js
parent94c0d43d2765488d715bffe426934ed7caa8f4f2 (diff)
juick-ws: websocket terminal
Diffstat (limited to 'juick-ws/webpack.config.js')
-rw-r--r--juick-ws/webpack.config.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/juick-ws/webpack.config.js b/juick-ws/webpack.config.js
new file mode 100644
index 00000000..e6d33a06
--- /dev/null
+++ b/juick-ws/webpack.config.js
@@ -0,0 +1,29 @@
+var webpack = require("webpack");
+var globby = require("globby");
+var precss = require('precss');
+var autoprefixer = require('autoprefixer');
+var ExtractTextPlugin = require("extract-text-webpack-plugin")
+module.exports = {
+ entry: {
+ "scripts" : globby.sync([
+ __dirname + "/src/main/static/*.*"
+ ])
+ },
+ output: {
+ path: __dirname + "/src/main/webapp",
+ filename: "[name].js"
+ },
+ module: {
+ loaders: [
+ { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader!postcss-loader") }
+ ]
+ },
+ plugins: [
+ new ExtractTextPlugin("style.css", {
+ allChunks: true
+ })
+ ],
+ postcss: function() {
+ return [require("postcss-import")({ addDependencyTo: webpack, path: ['node_modules'] }), precss({'import': {disable: true}}), autoprefixer];
+ }
+} \ No newline at end of file