File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 34
34
},
35
35
"scripts" : {
36
36
"build" : " npm run build:cssprops && tsc --build && rollup -c rollup.config.js" ,
37
- "build:cssprops" : " postcss lib/custom-properties.css --base lib/ --dir dist && npm run custom-properties-cache" ,
37
+ "build:cssprops" : " npm run postcss:convert && npm run postcss:colors && npm run custom-properties-cache" ,
38
+ "postcss:convert" : " postcss lib/custom-properties.css -o dist/custom-properties.css" ,
39
+ "postcss:colors" : " postcss dist/custom-properties.css -u postcss-color-function -o dist/custom-properties.css" ,
38
40
"clean" : " tsc --build --clean && rimraf -g dist lib/*.js lib/**/*.js *.tgz lib/**/*.d.ts custom-elements.json custom-properties.*" ,
39
41
"analyze" : " web-component-analyzer **/*.element.ts --outFile custom-elements.json" ,
40
42
"custom-properties-cache" : " node ./scripts/update-custom-properties-cache.js"
Original file line number Diff line number Diff line change 1
- module . exports = ( ) => {
2
- return {
3
- plugins : {
4
- 'postcss-advanced-variables' : { } ,
5
- 'postcss-color-function' : { } ,
6
- 'postcss-url' : { } ,
7
- autoprefixer : { } ,
8
- } ,
9
- } ;
1
+ /** @type {import('postcss-load-config').Config } */
2
+ const config = {
3
+ plugins : [
4
+ require ( 'postcss-advanced-variables' ) ,
5
+ require ( 'postcss-color-function' ) ,
6
+ require ( 'postcss-url' ) ,
7
+ require ( 'autoprefixer' ) ,
8
+ ] ,
10
9
} ;
10
+
11
+ module . exports = config ;
You can’t perform that action at this time.
0 commit comments