mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-11 12:20:45 +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: [
|
plugins: [
|
||||||
|
new webpack.ProgressPlugin(),
|
||||||
new webpack.EnvironmentPlugin({
|
new webpack.EnvironmentPlugin({
|
||||||
SENTRY_DSN: null,
|
SENTRY_DSN: null,
|
||||||
...env,
|
...env,
|
||||||
|
|
@ -187,25 +188,19 @@ module.exports = (env, argv) => ({
|
||||||
VERSION: pachageJson.version,
|
VERSION: pachageJson.version,
|
||||||
COMMIT_HASH
|
COMMIT_HASH
|
||||||
}),
|
}),
|
||||||
new webpack.ProgressPlugin(),
|
new CleanWebpackPlugin({
|
||||||
|
cleanOnceBeforeBuildPatterns: ['*']
|
||||||
|
}),
|
||||||
new CopyWebpackPlugin({
|
new CopyWebpackPlugin({
|
||||||
patterns: [
|
patterns: [{ from: 'favicons', to: `${COMMIT_HASH}/favicons` }]
|
||||||
{
|
}),
|
||||||
from: 'favicons',
|
new MiniCssExtractPlugin({
|
||||||
to: `${COMMIT_HASH}/favicons`
|
filename: `${COMMIT_HASH}/styles/[name].css`
|
||||||
}
|
|
||||||
]
|
|
||||||
}),
|
}),
|
||||||
new HtmlWebPackPlugin({
|
new HtmlWebPackPlugin({
|
||||||
template: './src/index.html',
|
template: './src/index.html',
|
||||||
inject: false,
|
inject: false,
|
||||||
faviconsPath: `${COMMIT_HASH}/favicons`
|
faviconsPath: `${COMMIT_HASH}/favicons`
|
||||||
}),
|
|
||||||
new MiniCssExtractPlugin({
|
|
||||||
filename: `${COMMIT_HASH}/styles/[name].css`
|
|
||||||
}),
|
|
||||||
new CleanWebpackPlugin({
|
|
||||||
cleanOnceBeforeBuildPatterns: ['*']
|
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue