UNPKG

xpn-antd

Version:
28 lines 621 B
// 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: "/", };