Comments (12)
My current workaround is to launch
cordova prepare
then
cordova compile android --release
so that webpack compiles as usual without the release flag. The outputed JS may not be optimal but it runs.
from cordova-template-framework7-vue-webpack.
Hi @Em-AK I've been seeing similar error output when running a build release.
In my case I found running the webpack process on it's own
./node_modules/.bin/webpack --env.release
gave a more verbose error report, and the problems turned out to be Uglifyjs finding syntax errors in my vue components (I've been using ES2105 and there's no babel step in the release build, but the ES2015 is all supported by chrome so in development there were no problems. ).
The vue-loader will transpile if there's .bablerc with { "presets": ["es2015"] } in the root directory.
from cordova-template-framework7-vue-webpack.
Are you using latest version of template?
from cordova-template-framework7-vue-webpack.
No, I am running 1.0.6
I will upgrade to the latest version and keep you posted. Is there another way than manually updating the files that changed since 1.0.6 to upgrade ?
from cordova-template-framework7-vue-webpack.
replace your project's
webpack/
hooks/
directories and
package.json
webpack.config.js
files with current version's. (check template_src folder)
from cordova-template-framework7-vue-webpack.
Is problem fixed?
from cordova-template-framework7-vue-webpack.
Hello @Em-AK;
I updated the dependencies and tested in my local. Please check one more time.
Have a great day!
from cordova-template-framework7-vue-webpack.
@coedycode I updated the template, can you test with latest update?
Thank you so much 😃
from cordova-template-framework7-vue-webpack.
@centrual I've updated my copy to the latest webpack config and hookers, with the .bablerc removed I get similar error messages to before, but with .bablerc there the build works fine.
Thanks for this great build tool btw, it's really helped me get started with phonegap.
from cordova-template-framework7-vue-webpack.
from cordova-template-framework7-vue-webpack.
I tested the latest version, because of that i closing the issue.
from cordova-template-framework7-vue-webpack.
Is problem fixed?
from cordova-template-framework7-vue-webpack.
Related Issues (20)
- f7 components
- Version 2.3.9 - ES Module HOT 3
- overswipe event bug in any device HOT 7
- cordova build ios --release bug HOT 2
- How to update template? HOT 2
- Live reload & API requests HOT 5
- white screen on fresh template android/ios HOT 2
- webpack out file question HOT 2
- how do use admob HOT 1
- Error webpack build android release HOT 3
- platform browser on macos HOT 2
- Error for cordova build browser --release HOT 1
- Not work in Linux
- not work reload HOT 1
- How do I get to the cordova object to access plugins in this template? HOT 1
- Can't connect to livereload from android device HOT 2
- Tapable.plugin is deprecated. Use new API on `.hooks` instead HOT 1
- lazy dynamic component import not working. HOT 5
- Sourcemap can't locate the right Line when Debug.
- Noob, cannot add plugin, what am I doing wrong?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-template-framework7-vue-webpack.