Code Monkey home page Code Monkey logo

Comments (11)

theodorejb avatar theodorejb commented on July 22, 2024

Run npm install ladda. The compiled package with a /dist folder will be put in node_modules/ladda.

from ladda.

gorgotluk avatar gorgotluk commented on July 22, 2024

I try but I get certificate Error.

from ladda.

theodorejb avatar theodorejb commented on July 22, 2024

Have you tried googling the error to see what might be causing it? It doesn't sound like an issue related to Ladda.

from ladda.

gorgotluk avatar gorgotluk commented on July 22, 2024

I don't Say it is ladda issue but I want to know that is other Way to get compiled ladda version

from ladda.

adonespitogo avatar adonespitogo commented on July 22, 2024

I didn't get any error but only css are in /dist folder and no js files

from ladda.

theodorejb avatar theodorejb commented on July 22, 2024

@adonespitogo That's expected. The package is written in standard JavaScript, so these files don't need to be compiled, only bundled. You should be able to import the ES6 module in your project and bundle everything together with Webpack or Rollup.

from ladda.

adonespitogo avatar adonespitogo commented on July 22, 2024

@theodorejb thanks for the quick response, but time is critical for me. I just downloaded the files from the demo site. Could have much convenient if it was available as a drop-in file without needing ES6 bundler. I'm using gulp

from ladda.

theodorejb avatar theodorejb commented on July 22, 2024

You could also stick with version 1.x if you don't want to use a bundler. I believe that's the version that's still on the demo site.

from ladda.

sbwMikael avatar sbwMikael commented on July 22, 2024

This is very frustrating. I'm not directing my ire at Ladda specifically, but the trend for not providing deployable scripts is pretty darned irritating. I've avoided grappling with any of this stuff until now - NodeJS, NPM, Grunt, and all of these other names that are opaque to me - because I've managed happily without them and I don't have time to learn yet another package management system right now.

So I fired up a Linux Mint install in a virtual machine, went through installing NodeJS, followed a tutorial online about setting things up, ran all of the various commands, and hit the "SyntaxError: Unexpected token import".

So I go to look on StackOverflow, and it seems that NodeJS "doesn't understand ES6 syntax", and there are messages about adding yet another application called Babel. Except, that's been recent refactored in version 6 and now involved pages of commands to get things working as expected. All I want is one JS file! And not the minified version from the demo because I specifically need to step through the file to location the source of an error I'm encountering, and the single letter function identifiers in the minified version make this excruciatingly painful. Argh.

from ladda.

theodorejb avatar theodorejb commented on July 22, 2024

@sbwMikael I also find it pretty annoying that Node.js doesn't support standard ES6 modules yet. For Ladda you shouldn't need Babel, though, just Rollup or Webpack to create a bundle which will work anywhere.

from ladda.

sbwMikael avatar sbwMikael commented on July 22, 2024

Thank you, I'll have a look into that

from ladda.

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.