Answer the question
In order to leave comments, you need to log in
How to set before handle in ng serve Angular 7?
Good afternoon! Tell me how to expand or customize the ng serve server? I found the package https://github.com/manfredsteyer/ngx-build-plus Angular itself recommends it, they say you can change the parameters through it.
Added custom file:
"serve": {
"builder": "ngx-build-plus:dev-server",
"options": {
"browserTarget": "frontend:build",
"extraWebpackConfig": "./webpack.serve.extra.ts"
},
"configurations": {
}
},
console.log("webpack.serve.extra.js");
module.exports = {
devServer: {
before: function () {
console.log(123123);
},
port: 9000
}
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question