-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
32 lines (29 loc) · 924 Bytes
/
webpack.mix.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// webpack.mix.js
// Sept 25, 2023 Shrinkray
const mix = require('laravel-mix');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
mix
// .disableNotifications()
.sass('scss/kks.scss', 'dist')
.postCss('dist/kks.css', 'dist', [
require('postcss-preset-env')({
stage: 0,
features: {
'nesting-rules': true,
},
}),
])
.js([ 'js/kks.js', 'js/motopress.js', 'js/scrolltop.js' ], 'dist/kks.js');
mix.webpackConfig({
stats: 'normal', // verbose, normal, minimal, none
}).webpackConfig({
plugins: [
new CleanWebpackPlugin({
dry: false,
verbose: false,
cleanStaleWebpackAssets: true,
protectWebpackAssets: false,
cleanOnceBeforeBuildPatterns: ['dist/kks.css', 'dist/kks.js'],
}),
],
});