diff options
author | Vitaly Takmazov | 2016-07-25 21:36:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-27 13:56:09 +0300 |
commit | 69af3f60d399157a8951988fa2f91d29c553fbb5 (patch) | |
tree | 8c38def00d1b3dc5e38cf421870afb62f3a823ea /juick-ws/webpack.config.js | |
parent | 94c0d43d2765488d715bffe426934ed7caa8f4f2 (diff) |
juick-ws: websocket terminal
Diffstat (limited to 'juick-ws/webpack.config.js')
-rw-r--r-- | juick-ws/webpack.config.js | 29 |
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 |