Skip to content

Commit 29d5f70

Browse files
Update production webpack file
1 parent 51495c1 commit 29d5f70

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

build/webpack.prod.conf.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,14 @@ const webpackConfig = merge(baseWebpackConfig, {
106106
ignore: ['.*']
107107
}
108108
]),
109-
new CopyWebpackPlugin([ { from: path.join(cesiumSource, cesiumWorkers), to: 'Workers' } ]),
110-
new CopyWebpackPlugin([ { from: path.join(cesiumSource, 'Assets'), to: 'Assets' } ]),
111-
new CopyWebpackPlugin([ { from: path.join(cesiumSource, 'Widgets'), to: 'Widgets' } ])
109+
new CopyWebpackPlugin([
110+
{from: path.join(cesiumSource, 'Assets'), to: 'Assets'},
111+
{from: path.join(cesiumSource, 'ThirdParty'), to: 'ThirdParty'},
112+
{from: path.join(cesiumSource, 'Widgets'), to: 'Widgets'},
113+
{from: path.join(cesiumSource, 'Workers'), to: 'Workers'},
114+
{from: path.join(cesiumSource, '../Build/Cesium/ThirdParty/Workers'), to: 'ThirdParty/Workers', force: true},
115+
{from: path.join(cesiumSource, '../Build/Cesium/Workers'), to: 'Workers', force: true}
116+
])
112117
]
113118
})
114119

0 commit comments

Comments
 (0)