-
Notifications
You must be signed in to change notification settings - Fork 27
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
Doesn't build on windows #7
Comments
@anaritsin, your change seems correct to me. One more regexp will need update as well:
- compiler.apply(new SkipAMDPlugin(/(^|\/)globalize($|\/)/));
+ compiler.apply(new SkipAMDPlugin(/(^|[/\\])globalize($|[/\\])/)); |
@rxaviers
GlobalizeCompilerHelper.prototype.getModuleFilepath = function(request) {
compiler.apply(new SkipAMDPlugin(/(^|/)globalize($|/)/)); Am i following correct way to solve this issue.? |
It's missing the GlobalizeCompilerHelper.prototype.getModuleFilepath = function(request) {
return path.join(this.tmpdir, request.replace(/.*!/, "").replace(/[/?" :\\]/g, "-"));
};
compiler.apply(new SkipAMDPlugin(/(^|[/\\])globalize($|[/\\])/)); |
I tried the
but it did not work for me. Also if I want to build it in 'production' mode, should not it be changed in the ProductionModePlugin ? |
Thanks it worked. but i got some other error. For this should i need to install globalize-runtime module? |
@anaritsin Yeap. |
@warstick, it seems It seems like you both are working on the same fix. If you create a PR you both could work together in the solution. I'm happy to assist as time permits. |
@warstick @rxaviers
); |
On your local |
@rxaviers the L30 - never executes |
The regexp should work. /(^|[/\\])globalize-runtime($|[/\\])/.test("C:\\app-npm-webpack\\node_modules\\globalize\\dist\\globalize-runtime\\message.js")
// > true Could you inspect the result of |
|
Anybody get this working? |
Nope. On Mon, Oct 19, 2015 at 6:10 PM, box-turtle [email protected]
Thanks & Regards, Manikanta Srirangam. Contact No: +91-9866348399 |
I'd be happy to merge a fix or to assist finding one. |
I was able to get past the globalize-runtime/module not found issues by disabling AMD on the tmp files themselves. I added
to ProductionModePlugin, and webpack completes successfully: However still think something is wrong since get following errors when opening the page in dist folder: |
@aruberto does development mode work for you? Can you give more information about the |
initial changes to get webpack to complete successfully
Hey @rxaviers I've put what I've done so far in https://github.com/aruberto/globalize-webpack-plugin/tree/windows-fix Here are the dist files that get generated from the app-npm-webpack project using my modified globalize-webpack-plugin on Windows and UglifyJS disabled: As mentioned I get following errors when opening index.html in chrome vendor.js 51 is
As for development mode, it never gave webpack errors even before my changes, however visting localhost:8080/index.html gives following error: It is pretty much what globalizejs/globalize#551 is complaining about |
Doing a diff between files generated on Linux and Windows (using my modified plugin), I notice this is off with files in dist/i18n. On Linux, the generated i18n files start with
and end with something like:
however on Windows the dist/i18n files start with
and end with
|
The issue with i18n files is the splits in utils.js and ProductionModePlugin.js changing
to
fixes issues with i18n files and page loads correctly! |
I've got the dev plugin working as well. I've submitted #12 which should fix this issue and globalizejs/globalize#551 Tested using https://github.com/jquery/globalize/tree/master/examples/app-npm-webpack, seems like everything works correctly. |
Awesome, just confirming is it all working on Windows now using your fix? |
Yes dev and prod modes both work for me with https://github.com/jquery/globalize/tree/master/examples/app-npm-webpack project |
Original: globalizejs/globalize#516
Jörn has added this comment:
The text was updated successfully, but these errors were encountered: