mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-14 13:00:35 +08:00
Use corresponding stylesheet depending on config variable
This commit is contained in:
1 parent
88d79d2ec2
commit
ac43179354
4 files changed
+19
No files matched your search
@@ -38,6 +38,18 @@ var Generator = module.exports = function Generator() {
|
||||
|
||||
this.stylesSuffix = '.css';
|
||||
|
||||
switch(this.config.get('styles-language')) {
|
||||
case 'sass':
|
||||
this.stylesSuffix = '.sass';
|
||||
break;
|
||||
case 'less':
|
||||
this.stylesSuffix = '.less';
|
||||
break;
|
||||
case 'stylus':
|
||||
this.stylesSuffix = '.styl';
|
||||
break;
|
||||
}
|
||||
|
||||
this.sourceRoot(path.join(__dirname, sourceRoot));
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
.<%= classedName %>{
|
||||
border: 1px dashed #f00;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
.<%= classedName %>
|
||||
border: 1px dashed #f00
|
||||
@@ -0,0 +1,2 @@
|
||||
.<%= classedName %>
|
||||
border 1px dashed #f00
|
||||
Reference in new issue
Block a user