赞
踩
特别注意includes
和exclude
!!
"paths": {
"@/*": ["./app/*"],
}
....
"exclude": ["node_modules", "dist", "src", ],
"includes": ["./app/**/*", "./chrome/**/*", ]
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
alias: {
'@': path.resolve(__dirname, 'app'),
},
},
module: {
rules: [{
test: /\.tsx?$/,
exclude: /node_modules/,
loader: 'awesome-typescript-loader',
},]}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。