2022-01-09 17:56:10 -05:00
|
|
|
// Generated using webpack-cli https://github.com/webpack/webpack-cli
|
2020-05-14 19:13:33 -04:00
|
|
|
|
2022-01-09 17:56:10 -05:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
const isProduction = process.env.NODE_ENV == 'production';
|
2021-02-26 07:11:13 -05:00
|
|
|
|
|
|
|
|
2022-01-09 17:56:10 -05:00
|
|
|
const config = {
|
|
|
|
entry: {
|
|
|
|
bundle: [
|
|
|
|
'./src/main.js',
|
|
|
|
],
|
|
|
|
style: [
|
|
|
|
'./src/style.js',
|
|
|
|
]
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, './static/dist'),
|
|
|
|
publicPath: '/dist/',
|
|
|
|
filename: '[name].min.js'
|
2020-05-14 19:13:33 -04:00
|
|
|
},
|
2022-01-09 17:56:10 -05:00
|
|
|
plugins: [
|
|
|
|
],
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
use: [
|
|
|
|
'vue-style-loader',
|
|
|
|
'css-loader'
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
|
|
|
presets: ['@babel/preset-env']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'vue$': 'vue/dist/vue.esm.js'
|
|
|
|
},
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = () => {
|
|
|
|
config.mode = 'production';
|
2020-05-14 19:13:33 -04:00
|
|
|
|
2022-01-09 17:56:10 -05:00
|
|
|
return config;
|
|
|
|
};
|