mirror of
https://github.com/gchq/CyberChef.git
synced 2025-06-15 18:54:56 -04:00
force webpack to only emit one file when using dynamic import
This commit is contained in:
parent
39c68ff26e
commit
c76322c40d
2 changed files with 17 additions and 3 deletions
15
Gruntfile.js
15
Gruntfile.js
|
@ -288,7 +288,10 @@ module.exports = function (grunt) {
|
|||
libraryTarget: "commonjs2"
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS)
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS),
|
||||
new webpack.optimize.LimitChunkCountPlugin({
|
||||
maxChunks: 1
|
||||
})
|
||||
],
|
||||
},
|
||||
nodeProd: {
|
||||
|
@ -305,7 +308,10 @@ module.exports = function (grunt) {
|
|||
libraryTarget: "commonjs2"
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS)
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS),
|
||||
new webpack.optimize.LimitChunkCountPlugin({
|
||||
maxChunks: 1
|
||||
})
|
||||
],
|
||||
optimization: {
|
||||
minimizer: [
|
||||
|
@ -333,7 +339,10 @@ module.exports = function (grunt) {
|
|||
libraryTarget: "commonjs2"
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS)
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS),
|
||||
new webpack.optimize.LimitChunkCountPlugin({
|
||||
maxChunks: 1
|
||||
})
|
||||
],
|
||||
optimization: {
|
||||
minimizer: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue