mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
reorder build plugins
This commit is contained in:
parent
da274e02cf
commit
3b2540c403
1 changed files with 8 additions and 13 deletions
|
|
@ -180,6 +180,7 @@ module.exports = (env, argv) => ({
|
|||
]
|
||||
},
|
||||
plugins: [
|
||||
new webpack.ProgressPlugin(),
|
||||
new webpack.EnvironmentPlugin({
|
||||
SENTRY_DSN: null,
|
||||
...env,
|
||||
|
|
@ -187,25 +188,19 @@ module.exports = (env, argv) => ({
|
|||
VERSION: pachageJson.version,
|
||||
COMMIT_HASH
|
||||
}),
|
||||
new webpack.ProgressPlugin(),
|
||||
new CleanWebpackPlugin({
|
||||
cleanOnceBeforeBuildPatterns: ['*']
|
||||
}),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: 'favicons',
|
||||
to: `${COMMIT_HASH}/favicons`
|
||||
}
|
||||
]
|
||||
patterns: [{ from: 'favicons', to: `${COMMIT_HASH}/favicons` }]
|
||||
}),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: `${COMMIT_HASH}/styles/[name].css`
|
||||
}),
|
||||
new HtmlWebPackPlugin({
|
||||
template: './src/index.html',
|
||||
inject: false,
|
||||
faviconsPath: `${COMMIT_HASH}/favicons`
|
||||
}),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: `${COMMIT_HASH}/styles/[name].css`
|
||||
}),
|
||||
new CleanWebpackPlugin({
|
||||
cleanOnceBeforeBuildPatterns: ['*']
|
||||
})
|
||||
]
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue