Files
smart-table/config/webpack.dev.js
2020-05-06 11:08:37 +08:00

17 lines
445 B
JavaScript

const path = require('path');
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = merge(common, {
plugins: [
new HtmlWebpackPlugin({
template: path.resolve(__dirname, '../examples/index.html'),
inject: 'head'
})
],
devtool: 'cheap-module-eval-source-map',
devServer: {
contentBase: './examples'
}
});