v1.0 with SW PWA enabled
This commit is contained in:
14
frontend/node_modules/postcss-load-config/README.md
generated
vendored
14
frontend/node_modules/postcss-load-config/README.md
generated
vendored
@ -83,26 +83,34 @@ plugins:
|
||||
postcss-plugin: {}
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> For YAML configs, you must have [yaml](https://www.npmjs.com/package/yaml) installed as a peer dependency.
|
||||
|
||||
### `.postcssrc.js` or `postcss.config.js`
|
||||
|
||||
You may need some logic within your config.
|
||||
In this case create JS file named:
|
||||
In this case create JS/TS file named:
|
||||
- `.postcssrc.js`
|
||||
- `.postcssrc.mjs`
|
||||
- `.postcssrc.cjs`
|
||||
- `.postcssrc.ts`
|
||||
- `.postcssrc.mts`
|
||||
- `.postcssrc.cts`
|
||||
- `postcss.config.js`
|
||||
- `postcss.config.mjs`
|
||||
- `postcss.config.cjs`
|
||||
- `postcss.config.ts`
|
||||
- `postcss.config.mts`
|
||||
- `postcss.config.cts`
|
||||
|
||||
> [!NOTE]
|
||||
> For TypeScript configs, you must have [tsx](https://www.npmjs.com/package/tsx) or [jiti](https://www.npmjs.com/package/jiti) installed as a peer dependency.
|
||||
|
||||
```
|
||||
Project (Root)
|
||||
|– client
|
||||
|– public
|
||||
|- (.postcssrc|postcss.config).(js|mjs|cjs|ts|cts)
|
||||
|- (.postcssrc|postcss.config).(js|mjs|cjs|ts|mts|cts)
|
||||
|- package.json
|
||||
```
|
||||
|
||||
@ -334,7 +342,7 @@ const { readFileSync } = require('fs')
|
||||
const postcss = require('postcss')
|
||||
const postcssrc = require('postcss-load-config')
|
||||
|
||||
const css = readFileSync('index.sss', 'utf8')
|
||||
const css = readFileSync('index.css', 'utf8')
|
||||
|
||||
const ctx = { parser: true, map: 'inline' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user