1 Star 0 Fork 33

suffrajet/g2plot

forked from antv/G2Plot 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack-dev.config.js 854 Bytes
一键复制 编辑 原始数据 按行查看 历史
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: {
moment: 'moment',
'../moment': 'moment',
},
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',
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/suffrajet.git/g2plot.git
git@gitee.com:suffrajet.git/g2plot.git
suffrajet.git
g2plot
g2plot
master

搜索帮助