A
A
alpha9172017-07-28 16:17:19
JavaScript
alpha917, 2017-07-28 16:17:19

How to do (what to read) to make an npm package?

I am developing a set of directives for angular 1.x and I want to separate it into a separate npm package .
I would like to arrange it correctly so that I can put it in OpenSource
Actually the question.
i am using webpack. How, in this case, is it right to make sure that users can use the package even without webpack?
Actually, how to make import and other prettiness work correctly without webpack?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2017-07-28
@k12th

https://github.com/krasimir/webpack-library-starter
krasimirtsonev.com/blog/article/javascript-library...
https://stackoverflow.com/questions/35131367/creat...
PS I hope you understand that import without webpack will not work for someone who includes the library for quite a long time :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question