Skip to content

Commit

Permalink
update syntax for webpack v5
Browse files Browse the repository at this point in the history
  • Loading branch information
sdreher committed Sep 3, 2021
1 parent 4de3f71 commit e57555e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Learn more about diagnoses treated by a speech-language pathologist.",
"main": "src/index.js",
"scripts": {
"serve": "webpack serve --hot --inline --mode development",
"serve": "webpack serve --hot --mode development",
"test": "mocha-chrome test/view-test.html",
"build": "webpack && webpack --config test/test.webpack.config.js"
},
Expand Down
8 changes: 2 additions & 6 deletions test/test.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,11 @@ module.exports = {
},
{
test: /\.(png|svg|jpg|gif)$/,
use: [
'file-loader'
]
type: 'asset/resource'
},
{
test: /\.(woff|woff2|eot|ttf|otf)$/,
use: [
'file-loader'
]
type: 'asset/resource'
}
]
}
Expand Down
18 changes: 2 additions & 16 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,11 @@ module.exports = {
},
{
test: /\.(png|svg|jpg|gif)$/,
use: [
{
loader: 'file-loader',
options: {
esModule: false
}
}
]
type: 'asset/resource'
},
{
test: /\.(woff|woff2|eot|ttf|otf)$/,
use: [
{
loader: 'file-loader',
options: {
esModule: false
}
}
]
type: 'asset/resource'
}
]
}
Expand Down

0 comments on commit e57555e

Please sign in to comment.