frontend-playground/vue/webpack.config.js

23 lines
398 B
JavaScript

const path = require('path');
module.exports = {
entry: './index.js',
devtool: 'inline-source-map',
mode: 'development',
module: {
rules: [
{
test: /\.jsx?$/,
use: 'babel-loader',
exclude: /node_modules/,
}
]
},
resolve: {
extensions: [".js"]
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
}
};