@financial-times/dotcom-build-sass 2.6.0 → 4.0.0
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.
- package/README.md +1 -1
- package/package.json +11 -5
package/README.md
CHANGED
@@ -41,7 +41,7 @@ module.exports = {
|
|
41
41
|
|
42
42
|
This plugin adds a [rule] to the Webpack configuration to handle `.scss` files. It first uses the [sass-loader] to transpile Sass source code, then sends the output through to the [postcss-loader] for optimisations, and finally the [css-loader]. The [mini-css-extract-plugin] is added to generate `.css` files and the [webpack-fix-style-only-entries] to clean up any empty JavaScript bundles.
|
43
43
|
|
44
|
-
Sass has been configured to find packages installed with
|
44
|
+
Sass has been configured to find packages installed with npm by looking in the `'node_modules/@financial-times'` directories. It can be configured to look in additional locations by passing the relevant paths to the plugin as absolute paths.
|
45
45
|
|
46
46
|
```js
|
47
47
|
new PageKitSassPlugin({ includePaths: [path.resolve('./path-to-sass-files')] })
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@financial-times/dotcom-build-sass",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/node/index.js",
|
6
6
|
"types": "src/index.ts",
|
@@ -12,7 +12,8 @@
|
|
12
12
|
"clean:node_modules": "rm -rf node_modules",
|
13
13
|
"build": "npm run build:node",
|
14
14
|
"build:node": "npm run tsc -- --module commonjs --outDir ./dist/node",
|
15
|
-
"dev": "npm run build:node -- --watch"
|
15
|
+
"dev": "npm run build:node -- --watch",
|
16
|
+
"preinstall": "[ \"$INIT_CWD\" != \"$PWD\" ] || npm_config_yes=true npx check-engine"
|
16
17
|
},
|
17
18
|
"keywords": [],
|
18
19
|
"author": "",
|
@@ -31,15 +32,20 @@
|
|
31
32
|
"webpack-fix-style-only-entries": "^0.5.0"
|
32
33
|
},
|
33
34
|
"devDependencies": {
|
34
|
-
"@types/webpack": "^4.41.7"
|
35
|
+
"@types/webpack": "^4.41.7",
|
36
|
+
"check-engine": "^1.10.1"
|
35
37
|
},
|
36
38
|
"engines": {
|
37
|
-
"node": ">= 12.0.0"
|
39
|
+
"node": ">= 12.0.0",
|
40
|
+
"npm": "7.x || 8.x"
|
38
41
|
},
|
39
42
|
"repository": {
|
40
43
|
"type": "git",
|
41
44
|
"repository": "https://github.com/Financial-Times/dotcom-page-kit.git",
|
42
45
|
"directory": "packages/dotcom-build-sass"
|
43
46
|
},
|
44
|
-
"homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-build-sass"
|
47
|
+
"homepage": "https://github.com/Financial-Times/dotcom-page-kit/tree/HEAD/packages/dotcom-build-sass",
|
48
|
+
"volta": {
|
49
|
+
"extends": "../../package.json"
|
50
|
+
}
|
45
51
|
}
|