mirror of
https://github.com/pure-css/pure.git
synced 2024-11-24 10:44:21 +00:00
fix: use pure from static folder
This commit is contained in:
parent
da2b34a95c
commit
285b4e3620
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user