You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Node.js executes the above line then it will throw an error because it will try to load the ./foo.css as a JavaScript module when it really just CSS code. The reason for including require('./foo.css') in the JavaScript code is allow the ./foo.css dependency to be discovered via static code analysis by the Lasso.js tool and automatically bundled with all of the other require CSS code. On the server (and in the browser) the actual require should be a no-op.
The text was updated successfully, but these errors were encountered:
Given the following code:
If Node.js executes the above line then it will throw an error because it will try to load the
./foo.css
as a JavaScript module when it really just CSS code. The reason for includingrequire('./foo.css')
in the JavaScript code is allow the./foo.css
dependency to be discovered via static code analysis by the Lasso.js tool and automatically bundled with all of the other require CSS code. On the server (and in the browser) the actualrequire
should be a no-op.The text was updated successfully, but these errors were encountered: