Commit 44b8e35b authored by Phil Hughes's avatar Phil Hughes

Merge branch 'jswain_startup_css' into 'master'

Provide command in case fixtures haven't been ran

See merge request gitlab-org/gitlab!75294
parents fcb5d0dd bd08a747
...@@ -29,7 +29,9 @@ const mergePurgeCSSOptions = (...options) => ...@@ -29,7 +29,9 @@ const mergePurgeCSSOptions = (...options) =>
const getStartupCSS = async ({ htmlPaths, cssPaths, purgeOptions }) => { const getStartupCSS = async ({ htmlPaths, cssPaths, purgeOptions }) => {
const content = htmlPaths.map((htmlPath) => { const content = htmlPaths.map((htmlPath) => {
if (!fs.existsSync(htmlPath)) { if (!fs.existsSync(htmlPath)) {
die(`Could not find fixture "${htmlPath}". Have you run the fixtures?`); die(
`Could not find fixture "${htmlPath}". Have you run the fixtures? (bundle exec rspec spec/frontend/fixtures/startup_css.rb)`,
);
} }
const rawHtml = fs.readFileSync(htmlPath); const rawHtml = fs.readFileSync(htmlPath);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment