Skip to content

Commit

Permalink
update config for new webpackcopyplugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Feb 28, 2023
1 parent 8c492ac commit 6738b51
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,16 @@ const webpackConfig = merge(baseWebpackConfig, {
}),
// enable scope hoisting
new webpack.optimize.ModuleConcatenationPlugin(),

// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
}
]),
new CopyWebpackPlugin([
{from: path.join(cesiumSource, 'Assets'), to: 'Assets'},
{from: path.join(cesiumSource, 'Widgets'), to: 'Widgets'},
{from: cesiumWorkers, to: 'Workers'},
// {from: path.join(cesiumSource, 'ThirdParty'), to: 'ThirdParty'},
// {from: path.join(cesiumSource, '../Build/Cesium/ThirdParty/Workers'), to: 'ThirdParty/Workers', force: true},
// {from: path.join(cesiumSource, '../Build/Cesium/Workers'), to: 'Workers', force: true}
])
new CopyWebpackPlugin({
patterns: [
{from: path.join(cesiumSource, 'Assets'), to: 'Assets'},
{from: path.join(cesiumSource, 'Widgets'), to: 'Widgets'},
{from: cesiumWorkers, to: 'Workers'},
// {from: path.join(cesiumSource, 'ThirdParty'), to: 'ThirdParty'},
// {from: path.join(cesiumSource, '../Build/Cesium/ThirdParty/Workers'), to: 'ThirdParty/Workers', force: true},
// {from: path.join(cesiumSource, '../Build/Cesium/Workers'), to: 'Workers', force: true}
]
})
]
})

Expand Down

0 comments on commit 6738b51

Please sign in to comment.