mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
clean-webpack-plugin configured
This commit is contained in:
parent
0bb6610166
commit
3cff595449
1 changed files with 6 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const HtmlWebPackPlugin = require('html-webpack-plugin');
|
||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
|
||||
|
|
@ -136,6 +137,11 @@ module.exports = {
|
|||
new HtmlWebPackPlugin({
|
||||
template: './src/index.html',
|
||||
inject: false
|
||||
}),
|
||||
new CleanWebpackPlugin({
|
||||
verbose: true,
|
||||
cleanOnceBeforeBuildPatterns: [],
|
||||
cleanAfterEveryBuildPatterns: ['./bundle.js']
|
||||
})
|
||||
]
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue