xpn-antd
Version:
橡皮泥内扩展 ant 组件
28 lines • 621 B
JavaScript
// const webpack = require("webpack");
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
configureWebpack: {
entry: {
app: './examples/main.js',
},
plugins: [
new HtmlWebpackPlugin({
template: 'examples/index.html',
filename: 'index.html',
inject: true,
}),
]
},
chainWebpack(cfg) {
cfg.resolve.alias.set("xpn-antd", __dirname + "/index.js");
},
devServer: {
disableHostCheck: true,
open: true,
host: 'localhost',
port: 80,
overlay: { warnings: false, errors: true },
},
productionSourceMap: false,
publicPath: "/",
};