-
I am not familiar with Node and its technologies and have been trying to use Rollup or Webpack to pack the whole thing into a single JS file without any success. Could someone please give me some guide on this? I want a (preferrably a single file) build so I can refer to it in an HTML file. No server side, just a WebView app so I need everything offline. Similar to how right now you can refer to https://unpkg.com/@material/[email protected]/all.js?module or https://unpkg.com/@material/[email protected]/common.js?module |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
try using esbuild with the following options: $ esbuild --bundle --minify --format=esm --outfile=bundle.js "path/to/all.js" |
Beta Was this translation helpful? Give feedback.
-
We also have a quick start that includes a building section! If you saw that but had problems, please let us know! We'll want to fix the guide if so. |
Beta Was this translation helpful? Give feedback.
try using esbuild with the following options:
$ esbuild --bundle --minify --format=esm --outfile=bundle.js "path/to/all.js"