Skip to content

Commit fa40226

Browse files
author
Andrew Welch
committed
Update config to use latest packages
1 parent 688abe8 commit fa40226

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

buildchain/webpack-configs/app.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ module.exports = (type = 'modern', settings) => {
2727
path.resolve(__dirname, '../node_modules'),
2828
],
2929
},
30+
stats: {
31+
colors: true,
32+
},
3033
});
3134
// configs
3235
const configs = {

buildchain/webpack-configs/dev-server.config.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ module.exports = (type = 'modern', settings) => {
1212
// common config
1313
const common = () => ({
1414
devServer: {
15-
contentBase: path.resolve(__dirname, settings.contentBase()),
16-
disableHostCheck: true,
15+
client: {
16+
progress: false,
17+
},
18+
dev: {
19+
publicPath: '/',
20+
},
21+
firewall: false,
1722
headers: {
1823
'Access-Control-Allow-Origin': '*'
1924
},
@@ -23,11 +28,13 @@ module.exports = (type = 'modern', settings) => {
2328
overlay: true,
2429
port: settings.port(),
2530
public: settings.public(),
26-
publicPath: '/',
27-
watchContentBase: true,
28-
watchOptions: {
29-
poll: !!parseInt(settings.poll()),
30-
ignored: /node_modules/,
31+
static: {
32+
directory: path.resolve(__dirname, settings.contentBase()),
33+
publicPath: '/',
34+
watch: {
35+
poll: !!parseInt(settings.poll()),
36+
ignored: /node_modules/,
37+
},
3138
},
3239
},
3340
devtool: false,
@@ -48,7 +55,6 @@ module.exports = (type = 'modern', settings) => {
4855
exclude: /\.(pcss|css)($|\?)/i,
4956
}),
5057
],
51-
target: 'web',
5258
});
5359
// configs
5460
const configs = {

buildchain/webpack-configs/manifest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
// returns a webpack config object for the manifest plugin
33

44
// webpack plugins
5-
const ManifestPlugin = require('webpack-manifest-plugin');
5+
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
66

77
// return a webpack config
88
module.exports = (type = 'modern', settings) => {
99
// common config
1010
const common = (filename) => ({
1111
plugins: [
12-
new ManifestPlugin({
12+
new WebpackManifestPlugin({
1313
fileName: filename,
1414
basePath: settings.basePath,
1515
map: (file) => {

0 commit comments

Comments
 (0)