-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
31 lines (29 loc) · 917 Bytes
/
webpack.config.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
const path = require('path')
const webpack = require('webpack')
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin')
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
module.exports = {
plugins: [
// new BundleAnalyzerPlugin()
new LodashModuleReplacementPlugin(),
// new webpack.ProvidePlugin({
// $: 'jquery',
// jQuery: 'jquery',
// 'window.jQuery': 'jquery',
// Popper: ['popper.js', 'default']
// })
],
resolve: {
extensions: ['.js', '.json', '.vue'],
alias: {
'~': path.join(__dirname, './resources/assets/js')
}
},
output: {
// path: process.env.MIX_APP_URL,
// chunkFilename: 'js/[name].[chunkhash].js',
chunkFilename: 'dist/js/chunk.[name].js',
// publicPath: mix.config.hmr ? '//localhost:8080' : '/DEV/hotel'
publicPath: process.env.MIX_PUBLIC_PATH //'/DEV/hotel/public'
}
}