Open
Description
- I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item | Version |
---|---|
generator-angular-fullstack | 3.7.6 |
Node | 4.2.3 |
npm | 3.9.6 |
Operating System | Ubuntu 16.04 |
etc | etc |
Item | Answer |
---|---|
Transpiler | Babel |
Markup | Jade |
CSS | CSS |
Router | / ui-router |
Build Tool | Gulp |
Client Tests | Mocha |
DB | MongoDB |
Auth | Y |
When first running gulp serve
gulp correctly uses the concat to take all the CSS files in my app and components folder and compile them into app.css . The problem is if I make a change to one of those CSS files while gulp is watching, it will reload app.css but it only reloads the CSS that is the root of the app folder (also called app.css).
Here is the styles function code
let styles = lazypipe()
.pipe(plugins.sourcemaps.init)
.pipe(plugins.concat, 'app.css')
.pipe(plugins.cleanCss, {processImportFrom: ['!fonts.googleapis.com']})
.pipe(plugins.autoprefixer, {browsers: ['last 1 version']})
.pipe(plugins.sourcemaps.write, '.');
Here is the gulp watch code
plugins.watch(paths.client.styles, () => { //['inject:css']
gulp.src(paths.client.mainStyle)
.pipe(plugins.plumber())
.pipe(styles())
.pipe(gulp.dest('.tmp/app'))
.pipe(plugins.livereload());
});