Gathering detailed insights and metrics for laravel-mix-postcss-config
Gathering detailed insights and metrics for laravel-mix-postcss-config
Gathering detailed insights and metrics for laravel-mix-postcss-config
Gathering detailed insights and metrics for laravel-mix-postcss-config
npm install laravel-mix-postcss-config
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
6 Stars
24 Commits
4 Branches
2 Contributors
Updated on 13 Apr 2022
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-15.9%
53
Compared to previous day
Last week
3.6%
257
Compared to previous week
Last month
-5.9%
1,110
Compared to previous month
Last year
-31.9%
14,985
Compared to previous year
1
A Laravel-mix plugin to add the postcss-loader
loader with its configuration file to the default mix
webpack.config.js file in a fluent way.
1mix.js('resources/js/app.js', 'public/js') 2 .postCss('resources/css/app.css', 'public/css') 3 .postCssConfig();
Laravel mix has a great and fluent api to define the build steps for an application. Mix has supprt for
defining postcss plugins through the postCss
api. Defining these plugins along with their options in mix's
config file will make the file large and difficult to read.
postcss-loader provide a way to define postcss plugins in a separate config file (postcss.config.js). This plugin extends laravel-mix api and add a method to include the loader with its config file in the build process.
Install using npm:
$ npm install laravel-mix-postcss-config --save-dev
Require the pulgin in your laravel-mix config file and call the extension method on mix.
1const mix = require('laravel-mix'); 2require('laravel-mix-postcss-config'); 3 4mix.js('resources/js/app.js', 'public/js') 5 .postCss('resources/css/app.css', 'public/css') 6 .postCssConfig();
The above call will merge the postcss-loader
loader to mix's generated webpack config rules with
the default loader configuration options. If you wish to change the default loader options you can
pass them in the call:
1const mix = require('laravel-mix'); 2require('laravel-mix-postcss-config'); 3 4mix.js('resources/js/app.js', 'public/js') 5 .postCss('resources/css/app.css', 'public/css') 6 .postCssConfig({ /* postcss-loader options */ });
You can find a list of possible postcss-loader
loader options in the loader
github repository
The MIT License (MIT). Please see License File for more information.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 1/18 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More@csstools/postcss-color-mix-function
Use the color-mix function in CSS
laravel-mix
The power of webpack, distilled for the rest of us.
postcss-load-config
Autoload Config for PostCSS
laravel-mix-merge-manifest
A quick Laravel Mix extension to support multi mix configration without overwriting the mix-manifest.json file.