aboutsummaryrefslogtreecommitdiff
path: root/juick-www/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-27 22:13:16 +0300
committerGravatar Vitaly Takmazov2018-03-27 22:22:35 +0300
commit13237626f3956d93a91a94bee6fee6aa86134a06 (patch)
tree50634fdfb2fddc924d60be18886184f49b2f7115 /juick-www/webpack.config.js
parentcc551432bf80e4466b92c42a77a094f31408abeb (diff)
www: spring boot autoconfigured static resources
+ cache busting using Spring
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 })
],
}