aboutsummaryrefslogtreecommitdiff
path: root/juick-www/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/webpack.config.js')
-rw-r--r--juick-www/webpack.config.js17
1 files changed, 6 insertions, 11 deletions
diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js
index c23524b0..a56c1b74 100644
--- a/juick-www/webpack.config.js
+++ b/juick-www/webpack.config.js
@@ -1,25 +1,23 @@
var webpack = require("webpack")
var ExtractTextPlugin = require("extract-text-webpack-plugin")
var StyleLintPlugin = require('stylelint-webpack-plugin')
-var AssetPipelinePlugin = require('webpack-asset-pipeline')
-var CleanWebpackPlugin = require('clean-webpack-plugin')
module.exports = {
devtool: 'source-map',
entry: {
"scripts" : [
- __dirname + "/src/main/static/scripts.js",
+ __dirname + "/src/main/assets/scripts.js",
require.resolve('evil-icons/assets/evil-icons.js')
],
"style" : [
- __dirname + "/src/main/static/style.css",
+ __dirname + "/src/main/assets/style.css",
require.resolve('evil-icons/assets/evil-icons.css'),
require.resolve('awesomplete/awesomplete.css')
]
},
output: {
- path: __dirname + "/src/main/resources",
- filename: "[name].[hash].js"
+ path: __dirname + "/src/main/resources/static",
+ filename: "[name].js"
},
module: {
rules: [
@@ -31,11 +29,8 @@ module.exports = {
]
},
plugins: [
- new CleanWebpackPlugin([ '*.css', '*.js', '*.map' ], { root: __dirname + '/src/main/resources' }),
- new webpack.optimize.ModuleConcatenationPlugin(),
- new StyleLintPlugin({ configFile: '.stylelintrc.json', context: 'src/main/static', files: ['**/*.css'], emitErrors: false }),
- new ExtractTextPlugin({ filename: "style.[hash].css", allChunks: true }),
- new AssetPipelinePlugin()
+ new StyleLintPlugin({ configFile: '.stylelintrc.json', context: 'src/main/assets', files: ['**/*.css'], emitErrors: false }),
+ new ExtractTextPlugin({ filename: "style.css", allChunks: true })
],
}