Add support for @import #167
-
|
Would it be possible to add support for an import statement? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
You mean importing a library into another project? EDIT: The example above was used with webpack. Of course you can also use this library as a module. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @tomickigrzegorz. I was more wanting to install as a Yarn/NPM dep, but I went with this method as you describe. |
Beta Was this translation helpful? Give feedback.
-
|
@tomickigrzegorz Can you add more details how your styles should be app.jsimport './autocomplete.scss';autocomplete.scss@import '@tomickigrzegorz/autocomplete/dist/css/autocomplete.css';Error:
At least if I read your https://github.com/tomickigrzegorz/autocomplete/blob/v3.0.3/package.json#L20 Or is this an error because there actually is no |
Beta Was this translation helpful? Give feedback.
You mean importing a library into another project?
Or use a library as a module (<script src="script.js" type="module"></script>)
EDIT: