Commit 04d81c83 authored by Andrew Hrdy's avatar Andrew Hrdy

CleanWebpackPlugin now correctly cleans the build directory

parent cafdb003
Pipeline #2523 passed with stages
in 2 minutes and 13 seconds
......@@ -5,10 +5,10 @@ const appDirectory = fs.realpathSync(process.cwd());
const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath);
module.exports = {
appRoot: resolveApp(''),
appHtml: resolveApp('public/index.html'),
appIndexJs: resolveApp('src/index.js'),
appBuild: resolveApp('build'),
appSrc: resolveApp('src'),
appDist: resolveApp('dist'),
publicPath: ''
};
\ No newline at end of file
......@@ -42,7 +42,9 @@ module.exports = {
]
},
plugins: [
new CleanWebpackPlugin(['build']),
new CleanWebpackPlugin([paths.appBuild], {
root: paths.appRoot
}),
new HtmlWebpackPlugin({
inject: true,
template: paths.appHtml,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment