![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
postcss-less-loader
Advanced tools
PostCSS Loader Loader for webpack to process LESS with PostCSS
npm i -D postcss-less-loader
Configuration
postcss.config.js
module.exports = {
plugins: [
require('autoprefixer')
]
}
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.s[ca]ss$/,
use: [ 'style-loader', 'css-loader', 'postcss-less-loader' ]
}
]
}
}
webpack.config.js
(recommended)
module.exports = {
module: {
rules: [
{
test: /\.css$/,
use: [
'style-loader',
{ loader: 'css-loader', options: { alias: { "@test": "/home/test"} } },
'postcss-less-loader'
]
}
]
}
}
Name | Type | Default | Description |
---|---|---|---|
config | {Object} | undefined | Set postcss.config.js config path && ctx |
plugins | {Array|Function} | [] | Set PostCSS Plugins |
sourceMap | {String|Boolean} | false | Enable Source Maps |
alias | {Object} | undefined | Set import alias |
Plugins
webpack.config.js
{
loader: 'postcss-less-loader',
options: {
ident: 'postcss',
plugins: (loader) => [
require('postcss-import')({ root: loader.resourcePath }),
require('postcss-preset-env')(),
require('cssnano')()
]
}
}
alias
webpack.config.js
{
test: /\.s[ca]ss$/,
use: [
'style-loader',
'css-loader',
{
loader: 'postcss-less-loader',
options: {
alias: {
"@test": "/home/test"
}
}
}
]
}
⚠️ webpack requires an identifier (
ident
) inoptions
when{Function}/require
is used (Complex Options). Theident
can be freely named as long as it is unique. It's recommended to name it (ident: 'postcss'
)
Autoprefixing
webpack.config.js
{
test: /\.s[ca]ss$/,
use: [
'style-loader',
'css-loader',
{
loader: 'postcss-less-loader',
options: {
plugins: [
require('autoprefixer')({...options}),
...,
]
}
}
]
}
FAQs
PostCSS Loader Loader for webpack to process LESS with PostCSS
The npm package postcss-less-loader receives a total of 143 weekly downloads. As such, postcss-less-loader popularity was classified as not popular.
We found that postcss-less-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.