-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: update webpack to v5 #519
Conversation
@@ -48,8 +53,17 @@ module.exports = { | |||
}, | |||
{ | |||
test: /\.(png|woff|woff2|eot|ttf|svg)$/, | |||
loader: 'url-loader' | |||
type: 'asset', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Рекомендуется заменить url-loader на asset modules: https://webpack.js.org/guides/asset-modules/
@@ -87,9 +101,9 @@ module.exports = { | |||
template: 'template.html', | |||
chunks: ['gui'] | |||
}), | |||
new HtmlWebpackIncludeAssetsPlugin({ | |||
new HtmlWebpackTagsPlugin({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Плагин обновился и поменял свое название.
@@ -13,11 +13,6 @@ module.exports = merge( | |||
minimize: false | |||
}, | |||
devtool: 'eval-source-map', | |||
devServer: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Убрал, т.к. у нас веб сервер не использовался
57d0b0b
to
8dce5b1
Compare
extensions: ['.js', '.jsx', '.ts', '.tsx'] | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
fallback: { | ||
crypto: require.resolve('crypto-browserify'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webpack 5 перестал автоматом включать полифиллы для node.js модулей, нужно руками прописывать их в конфиге.
What's done?