Giter Site home page Giter Site logo

Comments (12)

Em-AK avatar Em-AK commented on May 12, 2024 3

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.

coedycode avatar coedycode commented on May 12, 2024 2

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.

centrual avatar centrual commented on May 12, 2024

Are you using latest version of template?

from cordova-template-framework7-vue-webpack.

Em-AK avatar Em-AK commented on May 12, 2024

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.

centrual avatar centrual commented on May 12, 2024

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.

centrual avatar centrual commented on May 12, 2024

Is problem fixed?

from cordova-template-framework7-vue-webpack.

centrual avatar centrual commented on May 12, 2024

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.

centrual avatar centrual commented on May 12, 2024

@coedycode I updated the template, can you test with latest update?

Thank you so much 😃

from cordova-template-framework7-vue-webpack.

coedycode avatar coedycode commented on May 12, 2024

@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.

centrual avatar centrual commented on May 12, 2024

from cordova-template-framework7-vue-webpack.

centrual avatar centrual commented on May 12, 2024

I tested the latest version, because of that i closing the issue.

from cordova-template-framework7-vue-webpack.

YuannaLiang avatar YuannaLiang commented on May 12, 2024

Is problem fixed?

from cordova-template-framework7-vue-webpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.