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

Please add compiled files to a dist directory? #301

Closed
gsklee opened this issue Feb 3, 2015 · 2 comments
Closed

Please add compiled files to a dist directory? #301

gsklee opened this issue Feb 3, 2015 · 2 comments
Labels
core Infrastructure work going on behind the scenes

Comments

@gsklee
Copy link

gsklee commented Feb 3, 2015

I'm using npm as my frontend lib manager and right now, I can't just npm install material-ui and have the module available to me via require('material-ui') instantly. There will be some error like Error("Cannot find module \"./js/app-bar.jsx\""); e.code = 'MODULE_NOT_FOUND'; so maybe it's better if we can include compiled files readily in the repo.

@troutowicz
Copy link
Contributor

I use browserify and the reactify transformer in a package.json script.

browserify -t [ reactify --es6 ] src/react_components/index.jsx -o public/bundle.js

Any jsx files belonging to the loaded modules in index.jsx will be compiled to js and included in the bundled js file sent to clients.

@hai-cea
Copy link
Member

hai-cea commented Feb 10, 2015

Yes - we'll get this fixed. Dup of #179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

No branches or pull requests

5 participants