forked from mybizna/mybizna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
executable file
·43 lines (39 loc) · 1.1 KB
/
vue.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
32
33
34
35
36
37
38
39
40
41
42
43
const {
defineConfig
} = require('@vue/cli-service');
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
const TerserPlugin = require("terser-webpack-plugin");
module.exports = defineConfig({
transpileDependencies: true,
runtimeCompiler: true,
filenameHashing: false,
outputDir: __dirname + '/public/mybizna',
publicPath: "/mybizna/",
css: {
extract: true,
},
configureWebpack: {
resolve: {
extensions: ['.js', '.vue', '.json', '.ts', '.tsx', '.jsx'],
//extensions: ['.js', '.vue', '.json'],
alias: {
vue$: 'vue/dist/vue.esm-bundler.js',
'@': __dirname + '/resources/js'
},
},
entry: {
app: './resources/js/app.js'
},
optimization: {
splitChunks: false,
minimize: true,
minimizer: [new TerserPlugin()],
},
plugins: [
new MomentLocalesPlugin(),
new MomentLocalesPlugin({
localesToKeep: ['es-us'],
}),
],
},
})