-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.admin.js
35 lines (26 loc) · 1010 Bytes
/
webpack.admin.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
const mix = require('laravel-mix')
const config = require('./webpack.config')
require('laravel-mix-svg-vue')
require('laravel-mix-merge-manifest')
mix.webpackConfig({
output: {chunkFilename: 'admin/js/chunks/[name].js?id=[chunkhash]'},
...config
})
mix.options({
processCssUrls: false,
terser: {
extractComments: false,
}
})
mix.js('Modules/Admin/Resources/js/app.js', 'public/admin/js')
.vue()
.svgVue({svgPath: 'Modules/Admin/Resources/assets/svg'})
mix.sass('Modules/Admin/Resources/scss/app.scss', 'public/admin/css')
mix.copy('node_modules/pace-js/themes/blue/pace-theme-minimal.css', 'public/admin/css/pace.css')
mix.copy('node_modules/pace-js/pace.min.js', 'public/admin/js/pace.js')
mix.copy('Modules/Admin/Resources/assets/img', 'public/admin/img')
mix.copy('node_modules/@fortawesome/fontawesome-free/webfonts', 'public/admin/webfonts')
mix.sourceMaps()
.version(['public/admin/js/app.js', 'public/admin/css/app.css'])
.disableSuccessNotifications()
.mergeManifest()