加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
w.c.s.js 787 Bytes
一键复制 编辑 原始数据 按行查看 历史
fanliang 提交于 2022-11-18 17:56 . fix: new code
const HTMLWebpackPlugin = require('html-webpack-plugin');
const WebpackBar = require('webpackbar');
const path = require('path');
const packageJson = require('./package.json');
const version = packageJson['version'];
module.exports = {
entry: {
app: './src/index.ts'
},
plugins: [
new WebpackBar({ name: 'log.js', color: '#52c41a' }),
new HTMLWebpackPlugin({
template: "./debugTool.html"
})
],
module: {
rules: [
{ test: /\.js$/, loader: "babel-loader", options: { cacheDirectory: true }, exclude: /node_modules/ },
{ test: /\.ts$/, loader: 'ts-loader', exclude: /node_modules/ }
]
},
mode: 'development',
resolve: {
extensions: [".ts", ".js", ".json"]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化