Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.0.1
-
Labels:None
-
Number of attachments :4
Description
Splitting and naming of the parts does not appear to work as described.
Have a look at the attached files. Defining the split point to be d.js produces 1.js with a.js,b.js, and c.js included and a separate file including d.js. As per description of the webminifier's behaviour this should result in one file with the configured name including all the js files.
-
- minify-js.html
- 11/Apr/12 2:36 AM
- 0.3 kB
- Hubert Przybysz
-
- minify-js.html
- 11/Apr/12 2:36 AM
- 0.2 kB
- Hubert Przybysz
-
Hide
- test-webminifier.zip
- 16/Apr/12 9:55 AM
- 5 kB
- Hubert Przybysz
-
- pom.xml 1 kB
- src/main/webminifier-input/a.js 0.0 kB
- src/main/webminifier-input/b.js 0.0 kB
- src/main/webminifier-input/c.js 0.0 kB
- src/main/webminifier-input/d.js 0.0 kB
- src/main/webminifier-input/e.js 0.0 kB
- src/main/webminifier-input/f.js 0.0 kB
- src/main/.../minify-js.html 0.2 kB
- src/main/webminifier-input/sub1/a1.js 0.0 kB
- src/main/webminifier-input/sub1/b1.js 0.0 kB
- src/main/webminifier-input/sub1/c1.js 0.0 kB
- src/main/webminifier-input/sub1/d1.js 0.0 kB
- src/main/webminifier-input/sub1/e1.js 0.0 kB
- src/main/webminifier-input/sub1/f1.js 0.0 kB
- src/main/webminifier-input/.../sub2/a2.js 0.0 kB
- src/main/webminifier-input/.../sub2/b2.js 0.0 kB
- src/main/webminifier-input/.../sub2/c2.js 0.0 kB
- src/main/webminifier-input/.../sub2/d2.js 0.0 kB
- src/main/webminifier-input/.../sub2/e2.js 0.0 kB
- src/main/webminifier-input/.../sub2/f2.js 0.0 kB
-
- webminifier-test-1.jpg
- 211 kB
- 11/Apr/12 2:36 AM
Activity
Hi,
Attached a simple test-webminifier project to recreate the problem, as requested. The output files are in target/webminifier-output after the build.
Regards / Hubert.
I've just remembered that this is the required behaviour!
If you have a, b, c, d where a depends on b, b on c, c on d, then if you define a as a split point, a should be in its own file with b, c and d in one other file.
The reason things are this way is so that, if a is a library (for example) then you can ship the library with no dependencies.
I'm going to revert the fix made here as it has broken other projects.
Can you please try this with the latest snapshot if you're not already doing so and, if the problem persists, can you please provide a complete project whereby I can reproduce the problem.
Thanks!