Jelajahi Sumber

Fixing wrong /public path, relative to the webpack.dev script, that would avoid webpack from cleaning previous builds. (#12351)

PedroD 7 tahun lalu
induk
melakukan
3bf12e4ff5
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      scripts/webpack/webpack.dev.js

+ 1 - 1
scripts/webpack/webpack.dev.js

@@ -65,7 +65,7 @@ module.exports = merge(common, {
   },
 
   plugins: [
-    new CleanWebpackPlugin('../public/build', { allowExternal: true }),
+    new CleanWebpackPlugin('../../public/build', { allowExternal: true }),
     extractSass,
     new HtmlWebpackPlugin({
       filename: path.resolve(__dirname, '../../public/views/index.html'),