1
mirror of https://github.com/pure-css/pure synced 2024-12-25 05:23:43 +01:00

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 { version } = require('../../package.json');
const pureDir = path.resolve(__dirname, '..', '..', 'build');
const pureMin = fs.readFileSync(path.resolve(__dirname, '..', '..', 'build', 'pure-min.css'), 'utf-8');
const pureDir = path.resolve(__dirname, '..', 'static', 'css', 'pure');
const pureMin = fs.readFileSync(path.resolve(pureDir, 'pure-min.css'), 'utf-8');
// use pure-min.css to determine site integrity hash
const sriHash = crypto.createHash('sha384').update(pureMin, 'utf8').digest('base64');