Webpack-dev-server does not place bundle in dist

后端 未结 4 1162
执念已碎
执念已碎 2021-01-12 03:39

I am trying to setup a Webpack configuration for a website I want to build. I want to compile SASS to CSS and place it into the dist folder. When I run npm run build

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 03:50

    dev server have the option writeToDisk

    module.exports = { //... devServer: { writeToDisk: true } };

    check this : https://webpack.js.org/configuration/dev-server/#devserverwritetodisk-

提交回复
热议问题