-
Notifications
You must be signed in to change notification settings - Fork 442
Extension building problems #1230
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
Comments
This isn't a bug, it's an enhancement. Minifying without bundling and vice versa just isn't a supported build configuration. |
Trying to use an unsupported configuration ought to result in an error message, instead of a broken build. |
Hopefully contributors can handle an asset pipeline |
We can also probably support this easily by switching on the asset URL instead of the debug setting. So, I agree with this report more after thinking about it a minute. Easy change. |
I have tried to build and publish a new test extension, and encountered a bunch of problems.
webassets.debug
set to True, it works. (But it's quite different from what we can push to the web store.)webassets.debug
set to False, I get this error when I try to deploy the extension over a page:GET http://localhost:5000/assets/app.html 404 (Not Found)
Other assets are loaded successfully, only this one fails. (Of course this totally breaks the app.) This is problem no. 1.webassets.debug
set to True, it fails, because the JS library files are not copied into the extension. This is problem no. 2. (But maybe this is intended, since we are supposed to build withwebassets.debug
set to False?)webassets.debug
set to False, it works.webassets.debug
set to False, after deploying it, I get exceptions like this:This might or might not be related to angular/angular.js#4442. (At least the stack trace is the same.) This is problem no. 3
After some debugging, I realized that this is because the URL of the application has changed from
https://hypothes.is/app
tohttps://hypothes.is
. (So problem no. 3 is solved.)After using the new URL, I could finally build an extension that has the configuration required for actually pushing it to the chrome web store.
I am leaving this issue here as a memento to fix problem no. 1 and 2.
The text was updated successfully, but these errors were encountered: