preboot / angular-webpack

A complete, yet simple, starter for Angular v2+ using webpack
MIT License
1.29k stars 557 forks source link

Is it possible to use this seed to build an angular2 ui library? #236

Open corzand opened 7 years ago

ollwenjones commented 7 years ago

It's possible, but you'll need to tweak the webpack config so the output is what you need it to be. TL;DR You'll have to make some tweaks to the web-pack config. We set ours up with a 'lib' area and a 'demo' area, and initially just had TypeScript import barrels at the root of the project - since we were using webpack to consume it, it didn't matter that the TypeScript/SCSS wasn't compiled yet. Although we do have an outstanding task to pre-compile the TypeScript for the library, we haven't gotten around to adding the build task for that, yet.

andrea-spotsoftware commented 7 years ago

Thank you, I'm in the same situation. FYI, I found this brother project that should have the library goal, but it's quite embryonal and inactive. I will stay tuned