1
我试图排除的目录:\ SRC \谱曲\ APP3 \电影\ 我的语法是:的WebPack排除目录不工作..
config.module = {
//preLoaders: [{test: /\.ts$/, loader: 'tslint'}], // no need since I am using WebStorm to lint
loaders: [
// Support for .ts files.
{
test: /\.ts$/,
loader: 'ts',
query: {
'ignoreDiagnostics': [
2403, // 2403 -> Subsequent variable declarations
2300, // 2300 -> Duplicate identifier
2374, // 2374 -> Duplicate number index signature
2375 // 2375 -> Duplicate string index signature
]
},
exclude: [/\.(spec|e2e)\.ts$/, path.resolve(__dirname, "src/comps/app3/movies"), /node_modules\/(?!(ng2-.+))/]
},
我也尝试过类似的事情/电影/如以及/movies/.ts$ 不过的WebPack总是试图和进入目录的电影...
不知道为什么...任何建议表示赞赏
肖恩