aboutsummaryrefslogtreecommitdiff
path: root/juick-www/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-11 11:58:32 +0300
committerGravatar Vitaly Takmazov2016-07-11 11:58:32 +0300
commitfeffab19a4814b6e44cdd08aeca515e69ddeecb4 (patch)
treea2f9e08c526495188eadf6aea2c039e025f4acf9 /juick-www/webpack.config.js
parent3977d059599f96b1a31aeba587d63dbe7dce2b0a (diff)
backport npm/webpack stuff (WIP)
Diffstat (limited to 'juick-www/webpack.config.js')
-rw-r--r--juick-www/webpack.config.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js
new file mode 100644
index 00000000..d72c23e5
--- /dev/null
+++ b/juick-www/webpack.config.js
@@ -0,0 +1,25 @@
+var webpack = require("webpack")
+var globby = require("globby")
+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") },
+ { test: /scripts\.js$/, exclude: /node_modules/, loader: "expose?Juick" },
+ ]
+ },
+ plugins: [
+ new ExtractTextPlugin("style.css", {
+ allChunks: true
+ })
+ ]
+} \ No newline at end of file