Skip to content

Commit 6738b51

Browse files
update config for new webpackcopyplugin
1 parent 8c492ac commit 6738b51

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

build/webpack.prod.conf.js

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,16 @@ const webpackConfig = merge(baseWebpackConfig, {
8383
}),
8484
// enable scope hoisting
8585
new webpack.optimize.ModuleConcatenationPlugin(),
86-
87-
// copy custom static assets
88-
new CopyWebpackPlugin([
89-
{
90-
from: path.resolve(__dirname, '../static'),
91-
to: config.build.assetsSubDirectory,
92-
ignore: ['.*']
93-
}
94-
]),
95-
new CopyWebpackPlugin([
96-
{from: path.join(cesiumSource, 'Assets'), to: 'Assets'},
97-
{from: path.join(cesiumSource, 'Widgets'), to: 'Widgets'},
98-
{from: cesiumWorkers, to: 'Workers'},
99-
// {from: path.join(cesiumSource, 'ThirdParty'), to: 'ThirdParty'},
100-
// {from: path.join(cesiumSource, '../Build/Cesium/ThirdParty/Workers'), to: 'ThirdParty/Workers', force: true},
101-
// {from: path.join(cesiumSource, '../Build/Cesium/Workers'), to: 'Workers', force: true}
102-
])
86+
new CopyWebpackPlugin({
87+
patterns: [
88+
{from: path.join(cesiumSource, 'Assets'), to: 'Assets'},
89+
{from: path.join(cesiumSource, 'Widgets'), to: 'Widgets'},
90+
{from: cesiumWorkers, to: 'Workers'},
91+
// {from: path.join(cesiumSource, 'ThirdParty'), to: 'ThirdParty'},
92+
// {from: path.join(cesiumSource, '../Build/Cesium/ThirdParty/Workers'), to: 'ThirdParty/Workers', force: true},
93+
// {from: path.join(cesiumSource, '../Build/Cesium/Workers'), to: 'Workers', force: true}
94+
]
95+
})
10396
]
10497
})
10598

0 commit comments

Comments
 (0)