Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to place third-party files ? #339

Open
Justinemmerich opened this issue May 3, 2017 · 4 comments
Open

Where to place third-party files ? #339

Justinemmerich opened this issue May 3, 2017 · 4 comments

Comments

@Justinemmerich
Copy link

Hey guys,

I'am new to ngx and want to know where I have to place and bind third party CSS & JS Files
like this one here http://sdk.zurich.com/frontend-atomic/demo/zurich/01_styleguide/2_setup.html

thx

@Justinemmerich Justinemmerich changed the title Where to place third-party files Where to place third-party files ? May 3, 2017
@Foxandxss
Copy link
Member

Without npm package... Create a lib folder or something and put it there. It is not a common thing at all, but I guess no all libraries cares about npm.

@Justinemmerich
Copy link
Author

If I create a lib folder, where I have to register the parts and will the lib folder be compiled to my dist output ?

@strictd
Copy link
Contributor

strictd commented May 4, 2017

put your lib folder or third party library in src/public .. everything in src/public/ will get compiled with your dev and dist versions. src/public/lib/ becomes lib/ in your script src.

starting on line 247 in /webpack.config.js ..
CopyWebpackPlugin can copy over any other outside directories you need.

@Justinemmerich
Copy link
Author

thanks guys for this blazing fast answers, i will try this today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants