-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Description
I tried to create a project using jacss and used webpack as a build system. However, I have encountered some problems with that. JACSS suddenly became unavailable.
Steps to reproduce
Project structure
+ jacss/
+ jacss.main.js
+ scripts/
+ jacss.js
+ jacss-speech.js
+ jacss-....js
+ static/
jacss.main.js
require('scripts/jacss.js')
require('scripts/jacss-speech.js')
...etc
Webpack has jacss.main.js as entry point.
HTML pages use bundle, built with webpack
Expected result
JACSS works correctly
Actual result
JACSS is not working, an error appeared in the console: jacss is not defined
Suggestions
I suggest that happens because build system wraps js files into anonymous functions. Thus jacss is not available in global scope.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels