Move CSS files to root for easier imports
This commit is contained in:
parent
7c88a6c474
commit
055e3eea78
5 changed files with 4 additions and 3 deletions
1
preflight.css
Normal file
1
preflight.css
Normal file
|
|
@ -0,0 +1 @@
|
|||
@tailwind preflight;
|
||||
|
|
@ -5,14 +5,14 @@ import CleanCSS from 'clean-css'
|
|||
|
||||
function buildDistFile(filename) {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.log(`Processing ./css/${filename}.css...`)
|
||||
console.log(`Processing ./${filename}.css...`)
|
||||
|
||||
fs.readFile(`./css/${filename}.css`, (err, css) => {
|
||||
fs.readFile(`./${filename}.css`, (err, css) => {
|
||||
if (err) throw err
|
||||
|
||||
return postcss([tailwind(), require('autoprefixer')])
|
||||
.process(css, {
|
||||
from: `./css/${filename}.css`,
|
||||
from: `./${filename}.css`,
|
||||
to: `./dist/${filename}.css`,
|
||||
map: { inline: false },
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue