Skip to content

Commit

Permalink
fix(SLB-201): move CSS-sources and config into src
Browse files Browse the repository at this point in the history
Otherwise Gatsby will pick `postcss.config.cjs` up when loading `build/styles.css`
and break due to missing plugins.
  • Loading branch information
pmelab committed Jan 24, 2024
1 parent 2c5e31a commit bed9e97
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"scripts": {
"prep:types": "tsc --emitDeclarationOnly",
"prep:scripts": "swc ./src -d ./build",
"prep:styles": "NODE_ENV=production pnpm postcss tailwind.css -o build/styles.css",
"prep:iframe": "NODE_ENV=production pnpm postcss iframe.css -o build/iframe.css",
"prep:gutenberg": "NODE_ENV=production PREFIX=gutenberg pnpm postcss tailwind.css -o build/gutenberg.css",
"prep:styles": "NODE_ENV=production pnpm postcss src/tailwind.css -o build/styles.css",
"prep:iframe": "NODE_ENV=production pnpm postcss src/iframe.css -o build/iframe.css",
"prep:gutenberg": "NODE_ENV=production PREFIX=gutenberg pnpm postcss src/tailwind.css -o build/gutenberg.css",
"prep:i18n": "formatjs extract 'src/**/*.ts*' --ignore='**/*.d.ts' --ignore='**/*.stories.ts*' --out-file build/translatables.json --id-interpolation-pattern '[sha512:contenthash:base64:6]'\n",
"build": "storybook build",
"dev": "storybook dev -p 6006 --no-open",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Url } from '@custom/schema';
import { Meta, StoryObj } from '@storybook/react';

import cmsCss from '../../../../iframe.css?inline';
import cmsCss from '../../../iframe.css?inline';
import { BlockForm } from './BlockForm';

export default {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bed9e97

Please sign in to comment.