Giter Club home page Giter Club logo

Comments (11)

antonioreyna avatar antonioreyna commented on May 26, 2024 4

im getting this:

dist/app.0dc74645fc9cf0f68122.js from UglifyJs
SyntaxError: Unexpected token: name (warn) [./~/vue-awesome/util.js:3,0][dist/app.0dc74645fc9cf0f68122.js:607,4]

from vue-awesome.

Justineo avatar Justineo commented on May 26, 2024 1

@antonioreyna @HADB

Have you tried the solution in the readme yet?

from vue-awesome.

HADB avatar HADB commented on May 26, 2024 1

@Justineo This works for me:

exclude: /node_modules(?![\\/][\S]*vue-awesome[\\/])/

The real path for vue-awesome in node_modules is .2.1.0@vue-awesome not vue-awesome

BTW, is the file "util.js" necessary?

from vue-awesome.

Justineo avatar Justineo commented on May 26, 2024

It looks like that there's something wrong with your Webpack config. Are you using vue-loader correctly?

from vue-awesome.

asxcandrew avatar asxcandrew commented on May 26, 2024

I use brunch. How to use vue-awersome with brunch?

from vue-awesome.

Justineo avatar Justineo commented on May 26, 2024

I haven't used brunch so I'm not sure about the issue here right now.

from vue-awesome.

HADB avatar HADB commented on May 26, 2024

same as @antonioreyna, util.js is incompatible with uglifyjs.

from vue-awesome.

antonioreyna avatar antonioreyna commented on May 26, 2024

i got it working yes with the exclude thing

from vue-awesome.

HADB avatar HADB commented on May 26, 2024

I know why mine's different. I used cnpm instead of npm to install the packages beacuse of the network problem in China. There's a little difference between cnpm and npm.

from vue-awesome.

JiriChara avatar JiriChara commented on May 26, 2024

I think instead of doing: npm run icons && npm run build && cp -r ./src/* . && rm index.js when pre-publishing, you need something like: npm run icons && npm run build && cross-env BABEL_ENV=commonjs babel src --out-dir . && rm index.js. I can't test it locally, because of cnpm...

from vue-awesome.

Justineo avatar Justineo commented on May 26, 2024

Webpack config no longer need to be modified since v2.2.5 because warnings are utilizing Vue.util.warn now.

from vue-awesome.

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.