doesn't optimize
Closed this issue · 3 comments
atomsfat commented
I just cloned the project and run ./build.sh and give the following ouput
Tracing dependencies for: main
Tracing dependencies for: coffee-script
Uglifying file: /Workspace/test/require-cs/demo-build/lib/regular.js
Uglifying file: /Workspace/test/require-cs/demo-build/lib/require.js
Uglifying file: /Workspace/test/require-cs/demo-build/lib/main.js
Uglifying file: /Workspace/test/require-cs/demo-build/lib/domReady.js
Uglifying file: /Workspace/test/require-cs/demo-build/build.js
lib/main.js
----------------
/Workspace/test/require-cs/cs.js
lib/domReady.js
cs!controller
cs!util
cs!view
lib/regular.js
cs!csmain
lib/main.js
but in folder demo-build there this:
controller.coffee
csmain.coffee
domReady.js
main.js
regular.js
require.js
util.coffee
view.coffee
and the browser is making request for coffee files.
What I'am doing wrong?
node version: v0.8.7 and I cloned master
jrburke commented
The optimization is a whole project optimization, to allow for dynamic loading of modules even after the main set has been optimized together.
I just did a fresh clone and did a build, then I opened demo-build/index.html in the browser and see just the index.html, require.js and main.js load.
jrburke commented
If you can confirm that you loaded demo-build/index.html then we can try to figure out what the difference is.
atomsfat commented
You are right, It's working sorry about that