mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 17:21:18 +01:00
Fixed webpack production conf after updated deps.
See <https://webpack.js.org/guides/migrating/#occurrenceorderplugin-is-now-on-by-default>
This commit is contained in:
parent
5d0fbabb6a
commit
f452ea0d26
1 changed files with 6 additions and 3 deletions
|
@ -43,9 +43,13 @@ module.exports = {
|
||||||
chunkFilename: '[chunkhash].js'
|
chunkFilename: '[chunkhash].js'
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['', '.js', '.jsx']
|
extensions: ['.js', '.jsx']
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
noParse: [
|
||||||
|
/mapbox-gl\/dist\/mapbox-gl.js/,
|
||||||
|
/openlayers\/dist\/ol.js/
|
||||||
|
],
|
||||||
loaders
|
loaders
|
||||||
},
|
},
|
||||||
node: {
|
node: {
|
||||||
|
@ -55,7 +59,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.NoErrorsPlugin(),
|
new webpack.NoErrorsPlugin(),
|
||||||
new webpack.optimize.CommonsChunkPlugin('vendor', '[chunkhash].vendor.js'),
|
new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', filename: '[chunkhash].vendor.js' }),
|
||||||
new WebpackCleanupPlugin(),
|
new WebpackCleanupPlugin(),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env': {
|
'process.env': {
|
||||||
|
@ -68,7 +72,6 @@ module.exports = {
|
||||||
screw_ie8: true,
|
screw_ie8: true,
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
new webpack.optimize.OccurenceOrderPlugin(),
|
|
||||||
new ExtractTextPlugin('[contenthash].css', {
|
new ExtractTextPlugin('[contenthash].css', {
|
||||||
allChunks: true
|
allChunks: true
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue