-
add
customWebpackConfig
to angular.json
{ "projects": { "architect": { "build": { "options": { "customWebpackConfig": { "path": "./custom-webpack.config.js", "replaceDuplicatePlugins": true }, } } } } }
-
add the extra webpack plugin config in the custom-webpack.config.js
module.exports = { module: { rules: [ { test: /\.js$/, loader: 'babel-loader', query: { presets: ['@babel/preset-env' ] } } ] } }
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)