-
Notifications
You must be signed in to change notification settings - Fork 311
Custom webpack config not working after upgrading to 1.2.x #860
Comments
Which looks okay to me. |
Don't know if it's useful, but |
The same error occurs when building with rollup bundler.
|
It looks like it's related to #549 and #701
Which is pointing that Im running webpack with IonicEnvironmentPlugin and ionic info:
|
Do you have a repo I can use to quickly recreate this? Thanks, |
Sadly, no. I checked out app-scripts@master (I saw you added some better error logging for worker clients) and then I got this:
I also have a custom copy config, that copies web-animations.min.js to build folder. For some reason app-scripts requires a I modified my custom copy config: module.exports = Object.assign({}, copyConfig, {
copyWebAnimationsJs: {
- src: ['{{ROOT}}/node_modules/web-animations-js/web-animations.min.js'],
+ src: [
+ '{{ROOT}}/node_modules/web-animations-js/web-animations.min.js',
+ '{{ROOT}}/node_modules/web-animations-js/web-animations.min.js.map'
+ ],
dest: '{{BUILD}}'
}
}); ... and now it works! Maybe |
duplicate #853 |
Yeah. You're right. We've gotta think about that. It is likely trying to minify an already minified file. Let's track it at #853. Thanks, |
Short description of the problem:
After updating app-scripts from 1.1.4 to 1.2.x I can no longer build my app with
--prod
parameter.I get an error message:
What behavior are you expecting?
A succesfull build
**In my
package.json
I have **Which @ionic/app-scripts version are you using?
1.2.2
Ionic info:
Reverting to 1.1.4 (or removing
ionic_webpack
frompackage.json
) makes my app build again.I'm not sure what other information I can provide to help you reproduce?
The text was updated successfully, but these errors were encountered: