You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
704 B
38 lines
704 B
const path = require('path');
|
|
var prod = process.env.NODE_ENV === 'production';
|
|
|
|
module.exports = {
|
|
wpyExt: '.wpy',
|
|
eslint: true,
|
|
cliLogs: !prod,
|
|
static: ['static'],
|
|
build: {
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
counter: path.join(__dirname, 'src/components/counter'),
|
|
'@': path.join(__dirname, 'src')
|
|
},
|
|
aliasFields: ['wepy', 'weapp'],
|
|
modules: ['node_modules']
|
|
},
|
|
compilers: {
|
|
less: {
|
|
compress: prod
|
|
},
|
|
babel: {
|
|
sourceMap: true,
|
|
presets: [
|
|
'@babel/preset-env'
|
|
],
|
|
plugins: [
|
|
'@wepy/babel-plugin-import-regenerator'
|
|
]
|
|
}
|
|
},
|
|
plugins: [],
|
|
appConfig: {
|
|
noPromiseAPI: ['createSelectorQuery']
|
|
}
|
|
}
|
|
|