Commit 48a75ffd authored by Lukas Eipert's avatar Lukas Eipert

Update copy-webpack-plugin to 6.4.1

parent 2c361e2b
...@@ -451,12 +451,14 @@ module.exports = { ...@@ -451,12 +451,14 @@ module.exports = {
}), }),
dll && dll &&
new CopyWebpackPlugin([ new CopyWebpackPlugin({
patterns: [
{ {
from: dll.cacheFrom, from: dll.cacheFrom,
to: dll.cacheTo, to: dll.cacheTo,
}, },
]), ],
}),
!IS_EE && !IS_EE &&
new webpack.NormalModuleReplacementPlugin(/^ee_component\/(.*)\.vue/, (resource) => { new webpack.NormalModuleReplacementPlugin(/^ee_component\/(.*)\.vue/, (resource) => {
...@@ -467,7 +469,8 @@ module.exports = { ...@@ -467,7 +469,8 @@ module.exports = {
); );
}), }),
new CopyWebpackPlugin([ new CopyWebpackPlugin({
patterns: [
{ {
from: path.join(ROOT_PATH, 'node_modules/pdfjs-dist/cmaps/'), from: path.join(ROOT_PATH, 'node_modules/pdfjs-dist/cmaps/'),
to: path.join(WEBPACK_OUTPUT_PATH, 'cmaps/'), to: path.join(WEBPACK_OUTPUT_PATH, 'cmaps/'),
...@@ -475,8 +478,10 @@ module.exports = { ...@@ -475,8 +478,10 @@ module.exports = {
{ {
from: path.join(ROOT_PATH, 'node_modules', SOURCEGRAPH_PACKAGE, '/'), from: path.join(ROOT_PATH, 'node_modules', SOURCEGRAPH_PACKAGE, '/'),
to: SOURCEGRAPH_OUTPUT_PATH, to: SOURCEGRAPH_OUTPUT_PATH,
globOptions: {
ignore: ['package.json'], ignore: ['package.json'],
}, },
},
{ {
from: path.join( from: path.join(
ROOT_PATH, ROOT_PATH,
...@@ -484,7 +489,8 @@ module.exports = { ...@@ -484,7 +489,8 @@ module.exports = {
), ),
to: WEBPACK_OUTPUT_PATH, to: WEBPACK_OUTPUT_PATH,
}, },
]), ],
}),
// compression can require a lot of compute time and is disabled in CI // compression can require a lot of compute time and is disabled in CI
IS_PRODUCTION && !NO_COMPRESSION && new CompressionPlugin(), IS_PRODUCTION && !NO_COMPRESSION && new CompressionPlugin(),
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment