1 Star 0 Fork 33

likangrong / G2Plot

forked from antv / G2Plot 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack-dev.config.js 802 Bytes
一键复制 编辑 原始数据 按行查看 历史
paleface001 提交于 2019-12-30 16:42 . fix: webpack-dev.config
const routes = require('./scripts/demo-route');
const path = require('path');
module.exports = {
entry: {
g2plot: './src/index.ts',
},
output: {
filename: '[name].js',
library: 'g2plot',
libraryTarget: 'umd',
path: path.resolve(__dirname, 'dist/'),
},
resolve: {
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: {
loader: 'ts-loader',
options: {
transpileOnly: true,
},
},
},
],
},
externals: {},
devServer: {
disableHostCheck: true,
host: '0.0.0.0',
contentBase: [__dirname],
before(app) {
app.get('/demos/index.html', routes.index);
app.get('/demos/:target.html', routes.page);
},
},
devtool: 'source-map',
};
JavaScript
1
https://gitee.com/likangrong/g2plot.git
git@gitee.com:likangrong/g2plot.git
likangrong
g2plot
G2Plot
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891