aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-20 02:05:23 +0700
committerGravatar Vitaly Takmazov2016-11-23 13:03:00 +0300
commit7a2ea130863bb095fa925ec0c7576b076490f0cf (patch)
tree6289abc4383d070c39bf8528477d243a8d1dda87 /juick-spring-www/webpack.config.js
parent606e2a8d6fc8af288632e2857d3a89770fdbb69c (diff)
init juick-spring-web project
Diffstat (limited to 'juick-spring-www/webpack.config.js')
-rw-r--r--juick-spring-www/webpack.config.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/juick-spring-www/webpack.config.js b/juick-spring-www/webpack.config.js
new file mode 100644
index 00000000..acefc658
--- /dev/null
+++ b/juick-spring-www/webpack.config.js
@@ -0,0 +1,37 @@
+var webpack = require("webpack")
+var globby = require("globby")
+var ExtractTextPlugin = require("extract-text-webpack-plugin")
+module.exports = {
+ devtool: 'source-map',
+ entry: {
+ "scripts" : globby.sync([
+ __dirname + "/src/main/webapp/static/*.*",
+ require.resolve('evil-icons/assets/evil-icons.css'),
+ require.resolve('evil-icons/assets/evil-icons.js')
+ ])
+ },
+ output: {
+ path: __dirname + "/src/main/webapp",
+ filename: "[name].js"
+ },
+ module: {
+ preLoaders: [
+ { test: /\.jsx?$/, loader: 'eslint', exclude: /node_modules/ },
+ { test: /\.css$/, loader: 'csslint?failOnWarning=false', exclude: /node_modules/ }
+ ],
+ loaders: [
+ { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
+ { test: /\.png$/, loader: "url-loader?limit=10000000000" },
+ { test: /\.svg$/, loader: "url-loader?limit=10000000000" }
+ ]
+ },
+ plugins: [
+ new ExtractTextPlugin("style.css", {
+ allChunks: true
+ })
+ ],
+ eslint: {
+ failOnWarning: false,
+ failOnError: true
+ },
+} \ No newline at end of file