File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ Required config keys are:
96
96
* ` example.dist ` - the directory to build the distribution to
97
97
* ` example.files[] ` - files will be copied as-is into the ` example.dist ` folder
98
98
* ` example.scripts[] ` - scripts will be transpiled with babel and bundled by browserify
99
- * ` example.less[] ` - stylesheets will be generated with LESS
99
+ * ` example.less[] ` - stylesheets will be generated with LESS. Remember to update * css * file references on html.
100
100
* ` example.port ` - port to serve examples on, defaults to ` 8000 `
101
101
102
102
### Example
Original file line number Diff line number Diff line change @@ -151,8 +151,10 @@ module.exports = function (gulp, config) {
151
151
} ) , [ 'build:example:files' ] ) ;
152
152
153
153
var watchLESS = [ ] ;
154
- if ( config . example . less ) {
155
- watchLESS . push ( config . example . src + '/' + config . example . less ) ;
154
+ if ( config . example . less && config . example . less . length > 0 ) {
155
+ config . example . less . forEach ( function ( fileName ) {
156
+ watchLESS . push ( config . example . src + '/' + fileName ) ;
157
+ } ) ;
156
158
}
157
159
158
160
if ( config . component . less && config . component . less . path ) {
You can’t perform that action at this time.
0 commit comments