Skip to content

Commit

Permalink
copy built css to build/public - otherwise snowpack sees it is refere…
Browse files Browse the repository at this point in the history
…nced in index.html and fails on first build

(cherry picked from commit 05df245e34c98e0b5ab1416b21368e984b5f1c55)
  • Loading branch information
angryziber authored and karnilaev committed Aug 6, 2021
1 parent fbcedea commit dc846d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snowpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const plugins = [
if (!isTest) {
const sassCmd = 'sass -I node_modules ui/assets/scss:public/css'
plugins.push(['@snowpack/plugin-run-script', {
cmd: `${sassCmd} --no-source-map --style=compressed`, watch: `${sassCmd} --embed-source-map --watch`
cmd: `${sassCmd} --no-source-map --style=compressed && cp -fr public/css build/public/css`, watch: `${sassCmd} --embed-source-map --watch`
}])
}

Expand Down

0 comments on commit dc846d4

Please sign in to comment.