-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwebpack.mix.js
38 lines (35 loc) · 885 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
33
34
35
36
37
38
const mix = require('laravel-mix');
const SVGSpritemapPlugin = require('svg-spritemap-webpack-plugin');
require('laravel-mix-jigsaw');
mix.disableSuccessNotifications();
mix.setPublicPath('source/assets/build');
mix.jigsaw()
.js('source/_assets/js/main.js', 'js')
.js('source/_assets/js/spritemap.js', '')
.postCss('source/_assets/css/main.css', 'css', [
require('postcss-import'),
require('tailwindcss'),
])
.options({
processCssUrls: false,
})
.webpackConfig({
plugins: [
new SVGSpritemapPlugin('source/_assets/icons/*.svg', {
output: {
filename: 'icons/spritemap.svg',
svg4everybody: false,
svgo: false
},
sprite: {
generate: {
symbol: true,
use: true
}
}
}
)
]
})
.sourceMaps()
.version();