bezoerb / generator-grunt-symfony

[DEPRECATED] Yeoman generator that scaffolds out a Symfony PHP app including Browsersync, various CSS preprocessors, RequireJS, jspm, webpack and Service Worker
33 stars 5 forks source link

Bower is unnecessary bloat #207

Closed FossPrime closed 7 years ago

FossPrime commented 7 years ago

JSPM's registry has matured to the point where bower is completely unnecessary for all of the configurations. Removing it may be a little bit of work, as it's used extensively at build time and occasionally in the front end.

FossPrime commented 7 years ago

This will require a smarter router :/ as versions in JSPM are part of the folder names... which sass and less know nothing about.

AND the router will have to be somehow, built into sass.... which is beyond me or the care of most of the maintainers.

FossPrime commented 7 years ago

Importing from jspm

You can import scss files from jspm packages from within scss files using the jspm: prefix. For example, if you have jspm installed twbs/bootstrap-sass:

@import 'jspm:bootstrap-sass/assets/stylesheets/bootstrap';

Seems this guy has the answers we seek.

FossPrime commented 7 years ago

JSPM lost ground to Browserify and WebPack, there is little reason to overhaul it instead of replacing it for webpack.