1
0
Fork 0
mirror of synced 2024-11-19 07:15:36 -05:00
ovpn-admin/frontend/webpack.config.js

51 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2022-01-09 17:56:10 -05:00
const path = require('path');
//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: [
//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',
//'bootstrap-vue$': 'bootstrap-vue/src/index.js'
2022-01-09 17:56:10 -05:00
},
extensions: ['*', '.js', '.vue', '.json']
},
}
2020-05-14 19:13:33 -04:00