1
0
Fork 0
mirror of synced 2024-11-05 01:08:57 -05:00
ovpn-admin/frontend/webpack.config.js

52 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-01-09 17:56:10 -05:00
const path = require('path');
2022-12-30 09:25:21 -05:00
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
2022-01-09 17:56:10 -05:00
module.exports = {
mode: 'production',
2022-01-09 17:56:10 -05:00
entry: {
bundle: [
'./src/main.js',
],
2022-01-09 17:56:10 -05:00
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: [
2022-12-30 09:25:21 -05:00
// new BundleAnalyzerPlugin(),
2022-01-09 17:56:10 -05:00
],
module: {
rules: [
{
test: /\.css$/,
use: [
'vue-style-loader',
'css-loader'
],
},
{
test: /\.js$/,
//exclude: /node_modules\/(?!bootstrap-vue\/src\/)/,
exclude: /node_modules/,
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
},
],
2022-01-09 17:56:10 -05:00
},
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js',
2022-12-30 09:25:21 -05:00
//'bootstrap-vue$': 'bootstrap-vue/src/index.js',
// [path.resolve(__dirname, "../node_modules/bootstrap-vue/esm/icons/icons.js")]: false,
2022-01-09 17:56:10 -05:00
},
extensions: ['*', '.js', '.vue', '.json']
},
}
2020-05-14 19:13:33 -04:00