fix: use pure from static folder

This commit is contained in:
redonkulus 2020-05-09 08:56:57 -07:00
parent da2b34a95c
commit 285b4e3620

View File

@ -4,8 +4,8 @@ const gzip = require('gzip-size');
const path = require('path'); const path = require('path');
const { version } = require('../../package.json'); const { version } = require('../../package.json');
const pureDir = path.resolve(__dirname, '..', '..', 'build'); const pureDir = path.resolve(__dirname, '..', 'static', 'css', 'pure');
const pureMin = fs.readFileSync(path.resolve(__dirname, '..', '..', 'build', 'pure-min.css'), 'utf-8'); const pureMin = fs.readFileSync(path.resolve(pureDir, 'pure-min.css'), 'utf-8');
// use pure-min.css to determine site integrity hash // use pure-min.css to determine site integrity hash
const sriHash = crypto.createHash('sha384').update(pureMin, 'utf8').digest('base64'); const sriHash = crypto.createHash('sha384').update(pureMin, 'utf8').digest('base64');