From 69af3f60d399157a8951988fa2f91d29c553fbb5 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 25 Jul 2016 21:36:50 +0300 Subject: juick-ws: websocket terminal --- juick-ws/webpack.config.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 juick-ws/webpack.config.js (limited to 'juick-ws/webpack.config.js') 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 -- cgit v1.2.3