猿问

wepy项目导入到本地,执行build时提示”找不到编译器:wepy-compiler-less“

找不到编译器:wepy-compiler-less
wepy项目无法build


慕桂英4014372
浏览 1920回答 1
1回答

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'       ]     }   },
随时随地看视频慕课网APP

相关分类

Java
我要回答