diff --git a/public/index.html b/public/index.html index a0baeb8..c58d28a 100644 --- a/public/index.html +++ b/public/index.html @@ -87,7 +87,7 @@
main
main
?main=config.browserMain
).?main=browser
).You can do this easily using the following setup:
umd
(or dist
) directory to your .gitignore
file.npmignore
file that does not list the umd
directory. If you don't have an .npmignore
, npm will attempt to ignore everything in your .gitignore
when you npm publish
umd
directory just before you publish. Your first thought might be to use npm's prepublish
script for that, but I'd recommend you just use a separate build script, like this one because prepublish can also run when you don't expect it toumd
directory to your files
array in package.jsonumd
directory just before you publishnpm publish
you'll have a version available on npmcdn as wellIf you think this is useful, I'd love to hear from you. Please reach out to @mjackson with any questions/concerns.
-Also, please feel free to examine the source on GitHub.
+Also, please feel free to examine the source on GitHub.