add NameAllModulesPlugin to cover shortcomings of NamedModulesPlugin
This commit is contained in:
parent
4f6ca7bc9c
commit
5c0f506deb
3 changed files with 8 additions and 1 deletions
|
@ -5,6 +5,7 @@ var path = require('path');
|
||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
var StatsPlugin = require('stats-webpack-plugin');
|
var StatsPlugin = require('stats-webpack-plugin');
|
||||||
var CompressionPlugin = require('compression-webpack-plugin');
|
var CompressionPlugin = require('compression-webpack-plugin');
|
||||||
|
var NameAllModulesPlugin = require('name-all-modules-plugin');
|
||||||
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||||
var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
|
var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
|
||||||
|
|
||||||
|
@ -126,8 +127,9 @@ var config = {
|
||||||
jQuery: 'jquery',
|
jQuery: 'jquery',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// use deterministic module ids
|
// assign deterministic module ids
|
||||||
new webpack.NamedModulesPlugin(),
|
new webpack.NamedModulesPlugin(),
|
||||||
|
new NameAllModulesPlugin(),
|
||||||
|
|
||||||
// create cacheable common library bundle for all vue chunks
|
// create cacheable common library bundle for all vue chunks
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
"jszip-utils": "^0.0.2",
|
"jszip-utils": "^0.0.2",
|
||||||
"marked": "^0.3.6",
|
"marked": "^0.3.6",
|
||||||
"mousetrap": "^1.4.6",
|
"mousetrap": "^1.4.6",
|
||||||
|
"name-all-modules-plugin": "^1.0.1",
|
||||||
"pdfjs-dist": "^1.8.252",
|
"pdfjs-dist": "^1.8.252",
|
||||||
"pikaday": "^1.5.1",
|
"pikaday": "^1.5.1",
|
||||||
"prismjs": "^1.6.0",
|
"prismjs": "^1.6.0",
|
||||||
|
|
|
@ -3707,6 +3707,10 @@ mute-stream@0.0.5:
|
||||||
version "0.0.5"
|
version "0.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0"
|
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0"
|
||||||
|
|
||||||
|
name-all-modules-plugin@^1.0.1:
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/name-all-modules-plugin/-/name-all-modules-plugin-1.0.1.tgz#0abfb6ad835718b9fb4def0674e06657a954375c"
|
||||||
|
|
||||||
nan@^2.0.0, nan@^2.3.0:
|
nan@^2.0.0, nan@^2.3.0:
|
||||||
version "2.5.1"
|
version "2.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/nan/-/nan-2.5.1.tgz#d5b01691253326a97a2bbee9e61c55d8d60351e2"
|
resolved "https://registry.yarnpkg.com/nan/-/nan-2.5.1.tgz#d5b01691253326a97a2bbee9e61c55d8d60351e2"
|
||||||
|
|
Loading…
Reference in a new issue