mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-22 02:10:12 +01:00
feat(dependencies): update ng-router-loader to 2.1.0
This commit is contained in:
parent
33f0fbb457
commit
1ae084afc0
5 changed files with 160 additions and 74 deletions
|
|
@ -13,9 +13,7 @@ const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');
|
|||
const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin');
|
||||
const ProvidePlugin = require('webpack/lib/ProvidePlugin');
|
||||
const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');
|
||||
const WebpackMd5Hash = require('webpack-md5-hash');
|
||||
const V8LazyParseWebpackPlugin = require('v8-lazy-parse-webpack-plugin');
|
||||
|
||||
const OptimizeJsPlugin = require('optimize-js-plugin');
|
||||
/**
|
||||
* Webpack Constants
|
||||
*/
|
||||
|
|
@ -88,12 +86,15 @@ module.exports = function (env) {
|
|||
plugins: [
|
||||
|
||||
/**
|
||||
* Plugin: WebpackMd5Hash
|
||||
* Description: Plugin to replace a standard webpack chunkhash with md5.
|
||||
* Webpack plugin to optimize a JavaScript file for faster initial load
|
||||
* by wrapping eagerly-invoked functions.
|
||||
*
|
||||
* See: https://www.npmjs.com/package/webpack-md5-hash
|
||||
* See: https://github.com/vigneshshanmugam/optimize-js-plugin
|
||||
*/
|
||||
new WebpackMd5Hash(),
|
||||
|
||||
new OptimizeJsPlugin({
|
||||
sourceMap: false
|
||||
}),
|
||||
|
||||
/**
|
||||
* Plugin: DedupePlugin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue