Files
smart-table/config/webpack.dev.js

17 lines
434 B
JavaScript
Raw Normal View History

2020-01-31 19:39:40 +08:00
const path = require('path');
2020-01-13 16:25:20 +08:00
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
2020-01-31 19:39:40 +08:00
const HtmlWebpackPlugin = require('html-webpack-plugin');
2020-01-13 16:25:20 +08:00
module.exports = merge(common, {
2020-01-31 19:39:40 +08:00
plugins: [
new HtmlWebpackPlugin({
template: path.resolve(__dirname, '../examples/index.html'),
inject: 'head'
})
],
2020-01-13 16:25:20 +08:00
devtool: 'inline-source-map',
devServer: {
2020-01-31 19:39:40 +08:00
contentBase: './examples'
2020-01-13 16:25:20 +08:00
}
2020-01-31 19:39:40 +08:00
});