steveblue / angular2-rollup

CLI for bundling Angular with Rollup and Closure Compiler
121 stars 18 forks source link

Library build doesn't compile global styles with options #20

Closed steveblue closed 7 years ago

steveblue commented 7 years ago

This could be fixed by merging the new postcss flow from the prod build to the library build.

const postcss = require('./postcss.' + env + '.js');
let postcssConfig = ' -u';
...
/* Process PostCSS CLI plugins for the --use argument */

for (let cssProp in postcss.plugins) {
  postcssConfig += ' ' + cssProp;
}
...
let postcss = exec('postcss ./' + outFile + ' -c ./postcss.' + env + '.js -r' + postcssConfig
steveblue commented 7 years ago

Fixed in 4.3.6