Small guide for the use case without any modules, but with global scopes #5396
alexmeier-19
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For mdc there was a small guide how to use mdc in global scope instead of using modules. All Node building, compiling etc. processes are not my everyday business, so it took me some time to find a solution how to build and include material-web to use it without modules. All sources on the web use modules. Our app has a huge legacy, and it is not possible for us to use modules yet.
I achieved it by building material-web with "Rollup" with the following parameters.
npm install rollup @rollup/plugin-node-resolve
cd .\node_modules\@material\web
npx rollup -p @rollup/plugin-node-resolve all.js -o bundle.js -f iife -n MyMd
It would be nice if you could put a short and easy to understand guide to go this way!
Beta Was this translation helpful? Give feedback.
All reactions