Skip to content

Commit 49c46d6

Browse files
committed
Fix build errors
1 parent c9f2bfb commit 49c46d6

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"main": "lib/index.js",
2020
"browser": "lib/index.browser.js",
2121
"scripts": {
22-
"build-less": "lessc src/less/react-dual-listbox.less .css-compare/less.css",
22+
"build-less": "lessc src/less/react-checkbox-tree.less .css-compare/less.css",
2323
"build-script": "npm run build-script-node && npm run build-script-web",
2424
"build-script-node": "webpack --env=target=node",
2525
"build-script-web": "webpack --env=target=web",
26-
"build-sass": "sass src/scss/react-dual-listbox.scss lib/react-dual-listbox.css && cp lib/react-dual-listbox.css .css-compare/scss.css",
26+
"build-sass": "sass src/scss/react-checkbox-tree.scss lib/react-checkbox-tree.css && cp lib/react-checkbox-tree.css .css-compare/scss.css",
2727
"build-style": "npm run build-less && npm run build-sass && npm run build-style-autoprefix",
28-
"build-style-autoprefix": "postcss lib/react-dual-listbox.css --use autoprefixer --output lib/react-dual-listbox.css",
28+
"build-style-autoprefix": "postcss lib/react-checkbox-tree.css --use autoprefixer --output lib/react-checkbox-tree.css",
2929
"build": "npm run build-script && npm run build-style",
3030
"examples": "webpack serve --config=webpack.config.test.js",
3131
"gh-build": "webpack --config=webpack.config.test.js --mode=production",

postcss.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// eslint-disable-next-line import/no-extraneous-dependencies
2+
const cssnano = require('cssnano');
3+
4+
module.exports = {
5+
plugins: [
6+
cssnano({
7+
discardComments: true,
8+
}),
9+
],
10+
};

0 commit comments

Comments
 (0)