diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-01-06 18:08:06 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-01-06 18:08:06 +0100 |
commit | 90528f43bc988bac8c8280e917531f7505027570 (patch) | |
tree | 6143b81902af21aff93a1dc40b2a2eff3593735b /config/webpack | |
parent | 225c934a1b66e2fcbedbda7936666c1ca3c9a04b (diff) | |
parent | 69763b6385250902fdb329d030457159976f70ed (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - `config/webpack/configuration.js`: Upstream updated the `js-yaml` dependency, which changed how to call it. Those changes conflicted because that code is pretty different in glitch-soc which has to deal with its more complex theming system. Proceeded to the same compatibility changes in glitch-soc's code. - `package.json` and `yarn.lock`: Not really a conflict, just glitch-soc-specific dependencies textually too close to some dependencies updated upstream.
Diffstat (limited to 'config/webpack')
-rw-r--r-- | config/webpack/configuration.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/webpack/configuration.js b/config/webpack/configuration.js index b34ba0e0a..f05c888d5 100644 --- a/config/webpack/configuration.js +++ b/config/webpack/configuration.js @@ -2,19 +2,19 @@ const { basename, dirname, extname, join, resolve } = require('path'); const { env } = require('process'); -const { safeLoad } = require('js-yaml'); +const { load } = require('js-yaml'); const { lstatSync, readFileSync } = require('fs'); const glob = require('glob'); const configPath = resolve('config', 'webpacker.yml'); -const settings = safeLoad(readFileSync(configPath), 'utf8')[env.RAILS_ENV || env.NODE_ENV]; +const settings = load(readFileSync(configPath), 'utf8')[env.RAILS_ENV || env.NODE_ENV]; const flavourFiles = glob.sync('app/javascript/flavours/*/theme.yml'); const skinFiles = glob.sync('app/javascript/skins/*/*'); const flavours = {}; const core = function () { const coreFile = resolve('app', 'javascript', 'core', 'theme.yml'); - const data = safeLoad(readFileSync(coreFile), 'utf8'); + const data = load(readFileSync(coreFile), 'utf8'); if (!data.pack_directory) { data.pack_directory = dirname(coreFile); } @@ -23,7 +23,7 @@ const core = function () { for (let i = 0; i < flavourFiles.length; i++) { const flavourFile = flavourFiles[i]; - const data = safeLoad(readFileSync(flavourFile), 'utf8'); + const data = load(readFileSync(flavourFile), 'utf8'); data.name = basename(dirname(flavourFile)); data.skin = {}; if (!data.pack_directory) { |