40 lines
817 B
JavaScript
40 lines
817 B
JavaScript
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'),
|
|
'#': 'https://www.xiao4r.com/xiao4rstatic/hope_wine/'
|
|
},
|
|
aliasFields: ['wepy', 'weapp'],
|
|
modules: ['node_modules']
|
|
},
|
|
compilers: {
|
|
less: {
|
|
compress: prod
|
|
},
|
|
babel: {
|
|
sourceMap: false,
|
|
presets: [
|
|
'@babel/preset-env'
|
|
],
|
|
plugins: [
|
|
'@wepy/babel-plugin-import-regenerator',
|
|
'@babel/plugin-proposal-class-properties'
|
|
]
|
|
}
|
|
},
|
|
plugins: [],
|
|
appConfig: {
|
|
noPromiseAPI: ['createSelectorQuery']
|
|
}
|
|
}
|