npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

How to configure package to make imports simple?

Hello,

I just published my first npm package (https://www.npmjs.com/package/sensiostarter), which is a small frontend framework (SCSS/JS). I’d like to provide easy ways to import the .js and .css/.scss main files, such as:

As a noob, I couldn’t find any tutorial or similar entry point, to help me achieve that. Could you please enlight me ? Any help would be great!

Thank you in advance!