fix(create-app): should set css preprocessor

This commit is contained in:
陈嘉涵
2020-01-18 08:07:38 +08:00
parent fa9a64b480
commit 3baca25725
6 changed files with 16 additions and 18 deletions

View File

@@ -1,3 +0,0 @@
.test {
color: red;
}

View File

@@ -18,7 +18,7 @@ export default {
};
</script>
<style lang="less">
<style lang="<%= cssLang %>">
.demo-button {
min-width: 120px;
color: #fff;

View File

@@ -1,5 +0,0 @@
@import "./var.less";
body {
color: @text-color;
}

View File

@@ -1,2 +0,0 @@
@primary-color: #f44;
@text-color: #4a4a4a;

View File

@@ -1,6 +1,9 @@
module.exports = {
name: '<%= name %>',
build: {
css: {
preprocessor: '<%= preprocessor %>',
},
site: {
publicPath: '/<%= name %>/'
}