Ai
2 Star 0 Fork 0

mirrors_sourcegraph/codeintellify

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.test.config.ts 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
import * as path from 'path'
import { Configuration, SourceMapDevToolPlugin } from 'webpack'
const config: Configuration = {
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
devtool: 'inline-source-map',
module: {
rules: [
{
test: /\.html$/,
use: { loader: 'raw-loader' },
exclude: /node_modules/,
},
{
test: /\.ts$/,
use: 'awesome-typescript-loader',
exclude: /node_modules/,
},
{
test: /src\/.*\.ts$/,
exclude: /(node_modules|\.test\.ts$|\.d.ts$)/,
loader: 'istanbul-instrumenter-loader',
include: path.resolve(__dirname, 'src'),
enforce: 'post',
options: {
esModules: true,
},
},
],
},
resolve: {
extensions: ['.ts', '.js', '.html'],
mainFields: ['es2015', 'module', 'browser', 'main'],
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
library: ['react-annotator', '[name]'],
libraryTarget: 'umd',
},
plugins: [
new SourceMapDevToolPlugin({
filename: null,
test: /\.(ts|js)($|\?)/i,
}),
],
}
export default config
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_sourcegraph/codeintellify.git
git@gitee.com:mirrors_sourcegraph/codeintellify.git
mirrors_sourcegraph
codeintellify
codeintellify
master

搜索帮助