Comments (6)
I've uploaded the package to npm: aurelia-mdl.
I'm not using WebPack though.
from aurelia-mdl.
@go4cas any luck implementing this with webpack?
from aurelia-mdl.
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.
@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.
@genadis can you upload encapsulated-mdl to npm? it would help alot.
thanks!
from aurelia-mdl.
@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)
- 404 when using encapsulated-mdl HOT 2
- Tabs - Failed to execute 'querySelector' on 'Element' HOT 2
- Trying to use in the aurelia-cli HOT 6
- Will you be upgrading it to latest mdl? HOT 4
- Ability to extend `mdlTypes` to add support for custom MDL elements. HOT 3
- Issue when rendering mdl-layout HOT 7
- Timeout on Snackbar HOT 3
- Using different icon sets HOT 3
- Question: How to put a tooltip in a repeat HOT 4
- Weird issue with textfield HOT 9
- Example request: How to use a modal? HOT 3
- checkbox and switch not updating when bound property changes HOT 1
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 aurelia-mdl.