@epublishing/grunt-epublishing 0.3.7 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,11 +9,13 @@ const NODE_ENV = process.env.NODE_ENV || 'development';
9
9
 
10
10
  module.exports = function configureSass(config) {
11
11
 
12
- config.sass.options.implementation = sass;
12
+ const sassConfig = {
13
+ sass: {
14
+ options: {
15
+ implementation: sass
16
+ }
17
+ }
18
+ }
13
19
 
14
- config.sass.options.functions = {
15
- 'epub-node-env()': () => new sass.String(NODE_ENV),
16
- };
17
-
18
- return config;
20
+ return {...config, ...sassConfig}
19
21
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epublishing/grunt-epublishing",
3
3
  "description": "Automated front-end tasks for ePublishing Jade and client sites.",
4
- "version": "0.3.7",
4
+ "version": "0.3.9",
5
5
  "homepage": "https://www.epublishing.com",
6
6
  "contributors": [
7
7
  {
package/tasks/jade.js CHANGED
@@ -14,19 +14,11 @@ const initJadeConfig = require('../lib/init-jade-config');
14
14
  module.exports = function(grunt) {
15
15
  grunt.option('siteRoot', process.cwd())
16
16
 
17
- console.log('~~~~~~~~~~~~~~~~~~~~')
18
- console.log('~~~~~~~DEBUG~~~~~~~~')
19
- console.log('~~~~~~~~~~~~~~~~~~~~')
20
-
21
-
22
17
  if (!grunt.option('no-time')) timeGrunt(grunt);
23
-
24
18
  jitGrunt(grunt, {
25
19
  'install-eslint': '@epublishing/grunt-install-eslint',
26
20
  });
27
21
 
28
-
29
-
30
22
  /**
31
23
  * This registers a grunt task which shells out and uses bundler to
32
24
  * determine the paths to the jade gem and any jade child engine gem