mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
css hash
This commit is contained in:
parent
2dc1b1def6
commit
049fb813f2
1 changed files with 6 additions and 10 deletions
|
@ -39,6 +39,10 @@ module.exports = () => {
|
|||
miniCssExractPlugin,
|
||||
new webpack.HashedModuleIdsPlugin(),
|
||||
new Dotenv(),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: '[name].[contenthash].css',
|
||||
chunkFilename: '[id].css',
|
||||
}),
|
||||
];
|
||||
|
||||
return {
|
||||
|
@ -49,20 +53,12 @@ module.exports = () => {
|
|||
use: [
|
||||
{ loader: 'style-loader' },
|
||||
{ loader: 'css-loader' }
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
test: /\.less$/,
|
||||
use: [
|
||||
isDevelopment
|
||||
? { loader: 'style-loader' }
|
||||
: {
|
||||
loader: MiniCssExtractPlugin.loader({
|
||||
filename: '[name].[contenthash].css',
|
||||
chunkFilename: '[id].css',
|
||||
}),
|
||||
},
|
||||
// { loader: isDevelopment ? 'style-loader' : MiniCssExtractPlugin.loader },
|
||||
{ loader: isDevelopment ? 'style-loader' : MiniCssExtractPlugin.loader },
|
||||
// { loader: 'css-loader' },
|
||||
{
|
||||
loader: 'css-loader',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue