Skip to content

Commit

Permalink
Configure snowpack so it does not remove global CSS imports
Browse files Browse the repository at this point in the history
Codemirror styles were lost otherwise
  • Loading branch information
Thomas Parisot committed Jun 3, 2021
1 parent 4adb56f commit 388471e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions front/gatsby/snowpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module.exports = {
src: { url: '/dist' },
},
optimize: {
bundle: true,
minify: false,
bundle: false,
minify: true,
sourcemap: false,
splitting: true,
treeshake: true,
Expand All @@ -18,7 +18,14 @@ module.exports = {
{"match": "routes", "src": ".*", "dest": "/index.html"}
],
plugins: [
'@snowpack/plugin-sass',
[
'@snowpack/plugin-sass',
{
compilerOptions: {
loadPath: ['node_modules']
}
}
],
'@snowpack/plugin-react-refresh',
],
devOptions: {
Expand Down

0 comments on commit 388471e

Please sign in to comment.