From 752f79370a063c4b57cc2b776fcd3585e35c9812 Mon Sep 17 00:00:00 2001 From: Jeremy Danyow Date: Sat, 16 Jun 2018 21:41:58 -0700 Subject: [PATCH] parcel 1.9.0 with experimental scope hoisting --- .sassrc.js | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .sassrc.js diff --git a/.sassrc.js b/.sassrc.js new file mode 100644 index 0000000..b886e10 --- /dev/null +++ b/.sassrc.js @@ -0,0 +1,10 @@ +const path = require('path') + +const CWD = process.cwd() + +module.exports = { + "includePaths": [ + path.resolve(CWD, 'node_modules'), + path.resolve(CWD, 'src') + ] +} diff --git a/package.json b/package.json index 561d9d0..b67c268 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "prestart": "yarn run clean", "start": "parcel serve src/*.html src/client.ts --no-hmr --port 4000", "prebuild": "yarn run clean", - "build": "parcel build src/*.html src/client.ts", + "build": "parcel build src/*.html src/client.ts --experimental-scope-hoisting", "lint": "tslint --project tsconfig.json", "predeploy": "yarn run build && touch dist/.nojekyll && echo 'utteranc.es' > dist/CNAME", "deploy": "gh-pages --dist dist",