I have 2 tsconfigs, one for my dev build and one for my prod build.
I choose the tsconfig with the -p
flag :
tsc -p dev.tsconfig.json
Ts loader正在寻找tsconfig.json文件.如何使用ts加载程序指定另一个文件名?
module.exports = {
entry : __dirname + "/src/app/main.ts",
output : {
path : __dirname + "/dist",
filename : "bundle.js"
},
resolve : {
extensions : ["", ".webpack.js", ".web.js", ".js", ".ts"]
},
module: {
loaders: [
{ test: /\.ts?$/, loader: "ts" }
]
}
};