Code Monkey home page Code Monkey logo

Comments (6)

genadis avatar genadis commented on August 17, 2024

I've uploaded the package to npm: aurelia-mdl.

I'm not using WebPack though.

from aurelia-mdl.

cawomo avatar cawomo commented on August 17, 2024

@go4cas any luck implementing this with webpack?

from aurelia-mdl.

genadis avatar genadis commented on August 17, 2024

I'm working with JSPM. The plugin compiles to amd. It's dependency encapsulated-mdl is UMD compliant, so it should be just a matter of configuring it right.

Not strictly related but check out my last comment in Issue #12

If you make it work, I don't mind adding support for easier integration based on your input.

Thanks!

from aurelia-mdl.

cawomo avatar cawomo commented on August 17, 2024

@genadis thanks for the specification. I'm trying to get it to work, however I'm still missing something as I'm continuously getting the following stacktrace:

Unhandled rejection Error: Cannot find module './aurelia-mdl/mdl'.
    at webpackContextResolve (http://localhost:9000/app.bundle.js:10663:9)
    at webpackContext (http://localhost:9000/app.bundle.js:10658:29)
    at http://localhost:9000/aurelia-bootstrap.bundle.js:15702:48

Which leads me to think webpack can't resolve the plugin's following line:

config.globalResources('./mdl');

any ideas on how to fix this? so far I have added:

to webpack.config.js

entry: {
        'app': [/* this is filled by the aurelia-webpack-plugin */],
        'aurelia-bootstrap': coreBundles.bootstrap,
        'aurelia': coreBundles.aurelia.filter(pkg => coreBundles.bootstrap.indexOf(pkg) === -1),
        'material-mdl': ['aurelia-mdl']
    },

to package.json

"aurelia": {
    "build": {
      "resources": [
        {
          "bundle": "material-mdl",
          "path": "../node_modules/aurelia-mdl/dist/amd"
        }
      ]
    }
  },

Thanks!

from aurelia-mdl.

cawomo avatar cawomo commented on August 17, 2024

@genadis can you upload encapsulated-mdl to npm? it would help alot.

thanks!

from aurelia-mdl.

genadis avatar genadis commented on August 17, 2024

@cawomo uploaded see #12 (old issue I know, sorry don't have much time lately)

But I've noticed there is aurelia-mdl-webpack, so you probably better to use it.

from aurelia-mdl.

Related Issues (13)

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.