Skip to content

Instantly share code, notes, and snippets.

@ryanditjia
Created June 14, 2020 11:41
Show Gist options
  • Save ryanditjia/2050a601b775496584740b84a1c85693 to your computer and use it in GitHub Desktop.
Save ryanditjia/2050a601b775496584740b84a1c85693 to your computer and use it in GitHub Desktop.
Tailwind Sapper
<!-- remove GlobalStyle from this file -->
{
"scripts": {
"global-css": "postcss src/assets/global.pcss -o static/global.css --verbose",
"dev:global-css": "yarn global-css -w",
"build:global-css": "yarn global-css --env production",
"dev:sapper": "sapper dev",
"build:sapper": "NODE_ENV=production sapper build --legacy",
"export:sapper": "NODE_ENV=production sapper export --legacy",
"dev": "run-p dev:*",
"build": "run-p build:*",
"export": "run-p build:global-css export:sapper",
"start": "node __sapper__/build",
},
"devDependencies": {
"postcss-cli": "^7.1.1",
},
}
<link rel="stylesheet" href="global.css" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment