You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make sure importing source files is possible #1331
We should make sure that it's possible to import individual source files directly from the node_modules so developers won't need to resort to custom builds which are very annoying to maintain and not very practical these days.
I am a newbie can you verify that this problem can be solved using this link https://webpack.js.org/guides/getting-started/
I have time to combine a pr please go through this as I definitely need guidance
This might not need a PR. The main task is to verify if it's possible today and if any change is required on our side, then putting a PR together with the fix will be the way to go.
Just a reminder that it already works when importing the main files in the root of the project, we just need to be sure that importing the source files, in the source directory, work properly in these main bundlers.
I've tried it out with webpack and css-loader and it worked just fine. It's just a bit weird to use as you have to point to the whole path for the file for it to work. Like this:
It's not very practical. I'm not sure if we can provide a better way to use it without using some js, which I'm open to. Maybe an index.js file exporting all the CSS files could work?
I’ll start by reviewing how Animate.css currently exposes its files in the package and check what prevents direct source imports (e.g., Webpack/Rollup/Parcel not being able to resolve the individual animation files from node_modules).
My plan:
• Inspect how other CSS libraries expose their sources (like Tailwind or Bootstrap)
• Test importing individual animations using Webpack, Rollup, and Parcel
• Propose changes to the package structure or build config to support modular imports cleanly
I’ll share initial findings soon. If there are specific tools or bundlers the team prefers I test first, please let me know!
I’ll investigate how Animate.css exports its files and explore the necessary changes to allow importing individual animations directly (for Webpack, Rollup, and Parcel). I’ll share a proposal once I confirm a working approach.
Activity
warengonzaga commentedon Sep 3, 2021
How about starting with webpack @eltonmesquita?
ramanjitsingh-hub commentedon Sep 20, 2021
I am a newbie can you verify that this problem can be solved using this link https://webpack.js.org/guides/getting-started/
I have time to combine a pr please go through this as I definitely need guidance
joeworkman commentedon Sep 20, 2021
Have a look at esbuild as well... https://esbuild.github.io
warengonzaga commentedon Sep 20, 2021
This is promising I need to check this out first. Thanks for sharing @joeworkman.
ramanjitsingh-hub commentedon Sep 20, 2021
I can combine a pr if someone can guide me through it
eltonmesquita commentedon Sep 29, 2021
This might not need a PR. The main task is to verify if it's possible today and if any change is required on our side, then putting a PR together with the fix will be the way to go.
Just a reminder that it already works when importing the main files in the root of the project, we just need to be sure that importing the source files, in the
sourcedirectory, work properly in these main bundlers.eltonmesquita commentedon Jan 12, 2022
I've tried it out with webpack and
css-loaderand it worked just fine. It's just a bit weird to use as you have to point to the whole path for the file for it to work. Like this:It's not very practical. I'm not sure if we can provide a better way to use it without using some js, which I'm open to. Maybe an
index.jsfile exporting all the CSS files could work?debanjanbanerjee46 commentedon Jan 24, 2023
I want to work on this issue
Arif980 commentedon Apr 23, 2024
I want to work
aparajitaks commentedon Nov 29, 2025
Hi! 👋 I’d like to help with this issue.
I’ll start by reviewing how Animate.css currently exposes its files in the package and check what prevents direct source imports (e.g., Webpack/Rollup/Parcel not being able to resolve the individual animation files from
node_modules).My plan:
• Inspect how other CSS libraries expose their sources (like Tailwind or Bootstrap)
• Test importing individual animations using Webpack, Rollup, and Parcel
• Propose changes to the package structure or build config to support modular imports cleanly
I’ll share initial findings soon. If there are specific tools or bundlers the team prefers I test first, please let me know!
RudraKo commentedon Nov 29, 2025
Hi! I’d like to take this issue.
I’ll investigate how Animate.css exports its files and explore the necessary changes to allow importing individual animations directly (for Webpack, Rollup, and Parcel). I’ll share a proposal once I confirm a working approach.