Reputation: 31
In vuepress, I want to do some config for webpack devServer like below:
module.exports = { //... devServer: { https: true } };
but I don't know where I can config it. Does anyone know it?
In ..vuepress\config.js, config as below, but it doesn;t work.
module.exports = { chainWebpack (config, isServer) { } }
Thanks a lot.
Upvotes: 2
Views: 355
Reputation: 1921
You can do this configuration with .vuepress/config.js
. There is two configuration for change webpack:
module.exports = {
configureWebpack: (config, isServer) => {
},
chainWebpack: (config, isServer) => {
}
}
For more details you can read the documentation: https://vuepress.vuejs.org/config/#configurewebpack
Upvotes: 1