forked from donvikky/TaxApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
34 lines (30 loc) · 841 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
let mix = require('laravel-mix')
let webpack = require('webpack')
let process = require('process')
let assetPublishPath = 'Assets/dist'
mix.setPublicPath(assetPublishPath)
mix.webpackConfig({
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': `"${process.env.NODE_ENV}"`
}),
new webpack.ProvidePlugin({
jQuery: 'jquery',
$: 'jquery',
jquery: 'jquery'
})
]
})
mix
.js('Assets/js/app.js', 'app.js')
.sass('Assets/sass/app.scss', 'app.css')
.copyDirectory('Assets/images', assetPublishPath + '/images')
.autoload({
jquery: ['$', 'window.jQuery', 'window.jquery'],
raphael: ['Raphael'],
'popper.js': ['Popper']
})
.extract([
'vue', 'axios', 'jquery', 'bootstrap', 'es6-promise', 'popper.js',
'vue-clickaway', 'vue-notifyjs', 'timeago.js', 'raphael'
])