29 lines
681 B
JavaScript
29 lines
681 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
webpack: {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: [
|
|
{
|
|
loader: "ts-loader",
|
|
},
|
|
],
|
|
},
|
|
]
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@components': path.resolve(__dirname, 'src/components'),
|
|
'@less': path.resolve(__dirname, 'src/less')
|
|
}
|
|
}
|
|
},
|
|
cli: {
|
|
"enable-custom-component": true,
|
|
"enable-jsc": true,
|
|
"enable-protobuf": true
|
|
}
|
|
}; |