UYOU
1、npm i --save-dev wepy-compiler-less2、npm run build3、确保 wepy.config.js 里面的 less compilers 开启了 compilers: { less: {
compress: true
}, /* sass: {
outputStyle: 'compressed'
}, */
babel: { sourceMap: true,
presets: [ 'es2015', 'stage-1'
],
plugins: [ 'transform-decorators-legacy', 'transform-export-extensions', 'syntax-export-extensions'
]
}
},