summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-02-11 01:24:10 -0700
committerDan Allen <dan.j.allen@gmail.com>2022-02-11 01:24:10 -0700
commit48eec90d438d3463bc7071ba5d3c6c0f09c95209 (patch)
treef3f5a4342719da4bd709ad67b201e2efd5c79cee /src
parent1cfe82949c2634e4efa145c23be3014711575708 (diff)
specify postcss plugins as absolute paths in stylesheet build
Diffstat (limited to 'src')
-rw-r--r--src/stylesheets/package.json1
-rw-r--r--src/stylesheets/postcss.config.js6
2 files changed, 4 insertions, 3 deletions
diff --git a/src/stylesheets/package.json b/src/stylesheets/package.json
index b9679a6e..c3731075 100644
--- a/src/stylesheets/package.json
+++ b/src/stylesheets/package.json
@@ -4,7 +4,6 @@
"devDependencies": {
"autoprefixer": "~10.3",
"cssnano": "~5.0",
- "package.json": "^2.0.1",
"postcss": "~8.3",
"postcss-cli": "~8.3",
"stylelint": "~13.13",
diff --git a/src/stylesheets/postcss.config.js b/src/stylesheets/postcss.config.js
index a379527d..d40c4c46 100644
--- a/src/stylesheets/postcss.config.js
+++ b/src/stylesheets/postcss.config.js
@@ -1,3 +1,5 @@
+'use strict'
+
module.exports = (ctx) => ({
plugins: {
autoprefixer: true,
@@ -15,7 +17,7 @@ module.exports = (ctx) => ({
},
]
},
- './lib/postcss-minify-selectors.js': true,
- './lib/postcss-rule-per-line.js': true,
+ [require.resolve('./lib/postcss-minify-selectors.js')]: true,
+ [require.resolve('./lib/postcss-rule-per-line.js')]: true,
}
})