-
Notifications
You must be signed in to change notification settings - Fork 1.5k
path to resource in node_modules folder #347
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
Comments
@krazyjakee You can't do that with Webpacker. One way is to link that file within the main pack bundle like so, // packs/application.js
import 'bootstrap/dist/bootstrap.css' or you could do it with common chunk - https://webpack.js.org/plugins/commons-chunk-plugin/ |
Using
I get
|
You would need to install es2015 preset |
Thanks, that fixes the compilation issue but rails just gives me "Can't find react-rails-ujs/dist/react-rails-ujs.js". |
My mistake that was calling from elsewhere. Thanks! |
How do I something like:
asset_pack_path("bootstrap/dist/bootstrap.css")
where the bootstrap folder is in the node_modules folder?
The text was updated successfully, but these errors were encountered: