Skip to content

Commit 6db2e85

Browse files
committed
Fix tests after webpack v4 upgrade
1 parent eb2f0a9 commit 6db2e85

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

client-src/live/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
},
2020
{
2121
test: /\.html$/,
22-
use: ['html-loader'],
22+
use: ['html-loader']
2323
},
2424
{
2525
test: /\.css$/,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"strip-ansi": "^3.0.0",
6969
"supports-color": "^5.1.0",
7070
"webpack-dev-middleware": "2.0.5",
71-
"yargs": "^9.0.1"
71+
"yargs": "9.0.1"
7272
},
7373
"devDependencies": {
7474
"babel-cli": "^6.26.0",

test/Validation.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('Validation', () => {
5151
' object { hot?, hotOnly?, lazy?, bonjour?, host?, allowedHosts?, filename?, publicPath?, port?, socket?, ' +
5252
'watchOptions?, headers?, clientLogLevel?, overlay?, progress?, key?, cert?, ca?, pfx?, pfxPassphrase?, requestCert?, ' +
5353
'inline?, disableHostCheck?, public?, https?, contentBase?, watchContentBase?, open?, useLocalIp?, openPage?, features?, ' +
54-
'compress?, proxy?, historyApiFallback?, staticOptions?, setup?, before?, after?, stats?, reporter?, reportTime?, ' +
54+
'compress?, proxy?, historyApiFallback?, staticOptions?, setup?, before?, after?, stats?, reporter?, logTime?, ' +
5555
'noInfo?, quiet?, serverSideRender?, index?, log?, warn? }'
5656
]
5757
}];

test/fixtures/historyapifallback-3-config/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ module.exports = {
88
path: '/'
99
},
1010
module: {
11-
loaders: [
11+
rules: [
1212
{
1313
test: /\.html$/,
1414
loader: 'file-loader',
15-
query: { name: 'index.html' }
15+
options: { name: 'index.html' }
1616
}
1717
]
1818
}

test/fixtures/historyapifallback-config/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ module.exports = {
88
path: '/'
99
},
1010
module: {
11-
loaders: [
11+
rules: [
1212
{
1313
test: /\.html$/,
1414
loader: 'file-loader',
15-
query: { name: '[name].[ext]' }
15+
options: { name: '[name].[ext]' }
1616
}
1717
]
1818
}

0 commit comments

Comments
 (0)