mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 09:39:14 +08:00
27 lines
470 B
JavaScript
27 lines
470 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
mode: 'development',
|
|
devtool: 'cheap-module-eval-source-map',
|
|
entry: './example/index.js',
|
|
output: {
|
|
path: path.resolve(__dirname, './dist'),
|
|
publicPath: '/dist/',
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.jsx?$/,
|
|
loader: 'babel-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
devServer: {
|
|
inline: true,
|
|
open: true,
|
|
hot: true,
|
|
overlay: true,
|
|
},
|
|
};
|