Skip to content

Commit

Permalink
fix: delete amp stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
artmsilva committed May 13, 2022
1 parent 6421b38 commit 37e03ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
18 changes: 0 additions & 18 deletions build/tachyons-styled-jsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,6 @@ const fs = require("fs");
const path = require("path");

function build() {
fs.readFile(path.resolve(process.cwd(), "./css/amp.css"), (error, css) => {
if (error) console.log(error);
const stylesheetString = css
.toString()
.replace("/*# sourceMappingURL=amp.css.map */", "");

fs.writeFile(
path.resolve(__dirname, "../css/amp-styled-jsx.js"),
`/** generated from tachyons-styled-jsx.js */
import css from 'styled-jsx/css';
export const body = css.global\`${stylesheetString}\`;
`,
() => {
console.log("Tachyons build complete: css/amp-styled-jsx.js");
}
);
});

fs.readFile(path.resolve(process.cwd(), "./css/index.css"), (error, css) => {
if (error) console.log(error);
const stylesheetString = css
Expand Down
20 changes: 0 additions & 20 deletions src/amp.css

This file was deleted.

1 comment on commit 37e03ab

@vercel
Copy link

@vercel vercel bot commented on 37e03ab May 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.