We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In a new Symfony project that was created using symfony new my_project_directory --webapp, importing local CSS in a JS file like such works:
symfony new my_project_directory --webapp
// app.js import './github.css';
However when I try to add CSS from a third part, for example highlightJS, I get some strange behaviour:
// app.js import 'highlight.js/styles/github.css'; // successful build, but won't work
It will only work when using import(), like so: import('highlight.js/styles/github.css');
import()
import('highlight.js/styles/github.css');
I would expect import to work for files in node_modules as it does for my own files and not have to use import(). Or am I missing something?
import
node_modules
The text was updated successfully, but these errors were encountered:
Closing this as it is not an issue with Webpack Encore, but with highlight.js.
Sorry, something went wrong.
No branches or pull requests
In a new Symfony project that was created using
symfony new my_project_directory --webapp
, importing local CSS in a JS file like such works:However when I try to add CSS from a third part, for example highlightJS, I get some strange behaviour:
It will only work when using
import()
, like so:import('highlight.js/styles/github.css');
I would expect
import
to work for files innode_modules
as it does for my own files and not have to useimport()
. Or am I missing something?The text was updated successfully, but these errors were encountered: