Skip to content

Commit

Permalink
revert moving built css to build/public - this conflicts with bundlin…
Browse files Browse the repository at this point in the history
…g and the file gets removed

(cherry picked from commit 4d571a532890b706e214459b80adbafa30d88499)
  • Loading branch information
angryziber authored and karnilaev committed Aug 6, 2021
1 parent 64d79db commit fbcedea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"scripts": {
"build": "snowpack build && npm run build-autoprefixer && cp -ru public build",
"build-autoprefixer": "postcss -u autoprefixer --no-map --replace build/public/css/*.css",
"build-autoprefixer": "postcss -u autoprefixer --no-map --replace public/css/*.css",
"watch": "snowpack dev",
"gen-icon-sprite": "npx svgo --config ui/assets/icons-svgo.json -f ui/assets/icons && npx svg-sprite --config ui/assets/icons-svg-sprite.json ui/assets/icons/*.svg",
"test": "web-test-runner {i18n,ui}/**/*.test.ts"
Expand Down
3 changes: 1 addition & 2 deletions snowpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const plugins = [
]

if (!isTest) {
const sassCmd = 'sass -I node_modules ui/assets/scss:build/public/css'
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`
}])
Expand All @@ -32,7 +32,6 @@ const proxyOptions = {
export default {
mount: {
public: '/',
'build/public/css': {url: '/css', static: true, resolve: false},
ui: '/_dist_/ui',
i18n: '/_dist_/i18n'
},
Expand Down

0 comments on commit fbcedea

Please sign in to comment.