You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without optimization, this works fine. When using the optimizer, it tries to read from the remote location, so as per here in my app.build.js I defined paths as:
paths: {
...,
remotedata: 'empty:'
}
However, when I run it I get "Error: ENOENT, no such file or directory 'empty:'"
If I remove the 'text!' from my main.js the build stops failing. I've tried this with the json plugin from requirejs-plugins and had the same result.
This is more of a problem with the text plugin -- it should probably not try to fetch the text for empty:. If you are using the requirejs text plugin best to file the issue there. Sorry for the short reply, I'm packing for a trip -- if you open the other ticket it may be about a week before I can get to it.
In main.js I have something like the following configuration:
And in my call to require, as a dependency:
Without optimization, this works fine. When using the optimizer, it tries to read from the remote location, so as per here in my app.build.js I defined paths as:
However, when I run it I get "Error: ENOENT, no such file or directory 'empty:'"
If I remove the 'text!' from my main.js the build stops failing. I've tried this with the json plugin from requirejs-plugins and had the same result.
Versions: r.js: 2.1.8, RequireJS: 2.1.8, UglifyJS2: 2.3.6, UglifyJS: 1.3.4
The text was updated successfully, but these errors were encountered: