Add static asset invalidation.

This commit is contained in:
Jonathan Cremin 2017-05-07 00:02:20 +01:00
parent 2f3732a938
commit 2fdf364947
9 changed files with 92 additions and 285 deletions

View file

@ -1,6 +1,5 @@
const path = require('path');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
target: 'node',
@ -9,7 +8,7 @@ module.exports = {
libraryTarget: 'commonjs2',
path: path.resolve(__dirname, './public/dist'),
publicPath: '/dist/',
filename: 'js/build-server.js',
filename: 'js/main-server.js',
},
resolve: {
modules: [
@ -23,10 +22,6 @@ module.exports = {
'global.GENTLY': false,
}),
new webpack.optimize.OccurrenceOrderPlugin(),
new CopyWebpackPlugin([{
from: path.resolve(__dirname, './node_modules/bulma/css'),
to: path.resolve(__dirname, './public/dist/css/'),
}]),
],
module: {
loaders: [