postcss-import | PostCSS plugin to inline at-import rules content | Plugin library
kandi X-RAY | postcss-import Summary
kandi X-RAY | postcss-import Summary
PostCSS plugin to transform @import rules by inlining content. This plugin can consume local files, node modules or web_modules. To resolve path of an @import rule, it can look into root directory (by default process.cwd()), web_modules, node_modules or local modules. When importing a module, it will look for index.css or file referenced in package.json in the style or main fields. You can also provide manually multiples paths where to look at.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a new import
- Parses an import statement .
- Apply media .
- Parses the import statements into a file .
- Loads import statements from content
- Resolve import id
- Apply styles for a given bundle node .
- Run postprocesses
- Handle the charset .
- apply stawl nodes to staws
postcss-import Key Features
postcss-import Examples and Code Snippets
Community Discussions
Trending Discussions on postcss-import
QUESTION
I have a Nuxt ^2.15.8 application which is constantly reloading after I run yarn dev
.
The console will show a message like ↻ Updated 1647868577626
, and then the application is rebuilt, as if I just run yarn dev
. This happens constantly over and over, without me doing any changes in the code.
I googled a bit, and found applications like gitkraken might be modifying the content of the .git folder and that could trigger a reload.
So I keep gitkraken closed.
I also added these lines to my nuxt.config.js
file:
ANSWER
Answered 2022-Apr-03 at 10:40The actual issue was actually a version bump of ESlint from 1.x.x
to 3.x.x
. git bisect
helped finding out the actual culprit!
Cloning the repo again and reinstalling the dependencies again, fixed all the above mentioned issues while running yarn dev
!
QUESTION
I am using Tailwind CSS for my Laravel application, and want to remove the focus border on the input boxes. According to the documentation, focus:outline-none
should achieve this, although it is not working for me and the border still appears on focus.
It looks like I am targeting the wrong thing, as if I do focus:outline-black
, I can see a black outline as well as the standard blue one on focus.
focus:border-none
also does not fix the problem.
Any ideas?
...ANSWER
Answered 2021-Nov-16 at 02:25Maybe you can try add focus:outline-none
direct in your class.
QUESTION
I have a computed property named wildcardItem
that is working when using a development build, but when I run the production build (mix --production
), the property is no longer updating.
I'm using Laravel Mix to compile the code.
...ANSWER
Answered 2022-Mar-21 at 18:40computed()
returns a ref
, so you need to use .value
to unwrap the ref
for the value:
QUESTION
Okay, so I'm about to put my Laravel project in production. I tested everything on local host and it works perfectly using Tailwind 3. Yet, when I ran some PHP artisan commands to clear all cache and etc., migrate:fresh
my database, and then ran npm run dev
, I noticed that Tailwind removed the styles that I used in seeding blogs (I use seed to seed fake blog posts and view how they will look like).
For example I'm using the Typography Tailwind plugin with the utility-class prose
and so on. When I ran migrate:fresh
and the fake blog post deleted from database, then cleared Laravel cache, and ran npm run dev
, I noticed that all the prose
styles are being removed from app.css
. Of course I don't want that because this should be applied on each and every blog post that I will submit in production.
So how can I stop Tailwind from deleting these styles? I currently have all that I need and I don't want anything else removed.
webpack.mix
...ANSWER
Answered 2022-Mar-13 at 15:00Tailwind will only include the classes that it finds by scanning the files specified in the content
array in tailwind.config.js
. If you want to include additional classes that are only in your dynamic content, you can safelist those classes in your config. For example:
QUESTION
I'm trying to get an Angular Material instance working with the latest (13.x) version, using CodeSandbox (and by extension the CLI). I am receiving the dreaded, "Could not find angular material Core Theme" error. Note that I have tried importing via the usual routes
angular-cli.json:
"styles": ["./node_modules/@angular/material/prebuilt-themes/indigo-pink.css"],
styles.css:
...
ANSWER
Answered 2022-Mar-03 at 01:58The config file should be called angular.json
in angular 13. Here's a stackblitz with angular 13 and material set up: https://stackblitz.com/edit/angular-ivy-w8wwx5?file=angular.json
and here's the config file:
QUESTION
In a fresh Laravel 9 installation, the URL processing from Laravel Mix does not work anymore.
npm outputs the following:
...ANSWER
Answered 2022-Feb-22 at 10:55Actually moving the css imports into resources/js/app.js
solves this problem. However, this results in the imported css to be included in the public/js/app.js
, not the public/css/app.css
.
QUESTION
In my latest project, I'm using laravel-mix with the built in browserSync, and I've added tailwindCss as a package.
This is the webpack.mix.js
file:
ANSWER
Answered 2022-Feb-15 at 22:01Ah, I think I discovered what's going on here. Looks like it's a known issue with Webpack documented by Tailwind themselves:
If your CSS seems to be rebuilding in an infinite loop, there’s a good chance it’s because your build tool doesn’t support the glob option when registering PostCSS dependencies.
Many build tools (such as webpack) don’t support this option, and as a result we can only tell them to watch specific files or entire directories. We can’t tell webpack to only watch *.html files in a directory for example.
That means that if building your CSS causes any files in those directories to change, a rebuild will be triggered, even if the changed file doesn’t match the extension in your glob.
And here's their recommendation:
To solve this problem, use more specific paths in your content config, making sure to only include directories that won’t change when your CSS builds:
QUESTION
I'm using Tailwind and I try to use @apply on a scss file but vscode tells me "Unknown at rules @apply", I show you my App.css file and my css config, I read the tailwind doc about @Apply but I don't know, I must have missed something
App.css :
...ANSWER
Answered 2022-Jan-16 at 12:45There might be 2 issues:
- Instead of importing
@import "./unreset.scss";
try@import "unreset";
. - In postcss.config.js, export plugins config as object instead of array.
QUESTION
I have an app that is using Firestore Storage JavaScript version 9, Vuex 4, and Vue 3. It needs to download image urls from Firestore Storage to display on an image tag.
My Firestore Storage is structured listings/${userID}/
with image files of that userID in it.
I have one component that needs image urls and is trying to get them from Firestore (line 35).
Listing.vue
...ANSWER
Answered 2022-Jan-09 at 20:59figured it out:
it was the map statement that wasn't waiting for all of the promises to resolve from getDownloadURL. I needed to stick that in a Promise.all()
like this
QUESTION
I am using nextjs with tailwindcss and i am facing the difficulty in adding postcss-nesting to my nextjs app.
Here is the configuration below for the same :
next.config.js
...ANSWER
Answered 2022-Jan-05 at 16:24Had same error. When used:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install postcss-import
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page