Skip to content

Commit

Permalink
Move CSS files to root for easier imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Mar 13, 2018
1 parent 7c88a6c commit 055e3ee
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions preflight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@tailwind preflight;
6 changes: 3 additions & 3 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
})
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 055e3ee

Please sign in to comment.