Update dependencies and add blog
This commit is contained in:
parent
477b6e4dc7
commit
7a8fb3449d
22 changed files with 948 additions and 332 deletions
|
|
@ -1,6 +1,4 @@
|
|||
const webpack = require('webpack');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const CompressionPlugin = require("compression-webpack-plugin")
|
||||
const config = require('./webpack.base.js');
|
||||
|
||||
module.exports = Object.assign(
|
||||
|
|
@ -11,27 +9,14 @@ module.exports = Object.assign(
|
|||
{
|
||||
minimize: true
|
||||
},
|
||||
plugins: [
|
||||
plugins: config.plugins.concat([
|
||||
new webpack.DefinePlugin(
|
||||
{
|
||||
'process.env':
|
||||
{
|
||||
'DEBUG': false
|
||||
} // set a DEBUG flag that can be used in the scripts (can be skipped)
|
||||
}),
|
||||
new CopyPlugin([
|
||||
{from: 'index.html'},
|
||||
{from: 'robot.txt'},
|
||||
{from: 'src/lang', to: 'lang'},
|
||||
{from: 'assets/public', to: 'assets'}
|
||||
]),
|
||||
new CompressionPlugin(
|
||||
{
|
||||
filename: "[path].gz[query]",
|
||||
algorithm: "gzip",
|
||||
test: [/\.js/, /\.svg/],
|
||||
threshold: 1000
|
||||
})
|
||||
]
|
||||
])
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue