@utrecht/component-library-css 3.1.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/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ var undefined$1 = undefined;export{undefined$1 as default};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.1.0",
2
+ "version": "4.0.0",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -16,13 +16,16 @@
16
16
  "url": "git@github.com:nl-design-system/utrecht.git"
17
17
  },
18
18
  "devDependencies": {
19
- "node-sass-package-importer": "5.3.3",
19
+ "postcss-discard-duplicates": "7.0.0",
20
20
  "rimraf": "3.0.2",
21
- "sass": "1.69.5"
21
+ "rollup": "3.29.4",
22
+ "rollup-plugin-postcss": "4.0.2",
23
+ "@utrecht/components": "6.0.0",
24
+ "@utrecht/html-content-css": "1.1.0"
22
25
  },
23
26
  "main": "dist/index.css",
24
27
  "scripts": {
25
- "build": "sass src/:dist/ --load-path=../../node_modules/ --no-source-map",
26
- "clean": "rimraf dist/"
28
+ "build": "rollup --config ./rollup.config.mjs",
29
+ "clean": "rimraf dist"
27
30
  }
28
31
  }
@@ -0,0 +1,37 @@
1
+ import postcss from 'rollup-plugin-postcss';
2
+ import discardDuplicates from 'postcss-discard-duplicates';
3
+
4
+ export default [
5
+ {
6
+ input: 'src/index.scss',
7
+ output: {
8
+ dir: './dist',
9
+ sourcemap: false,
10
+ format: 'esm',
11
+ compact: true,
12
+ },
13
+ plugins: [
14
+ postcss({
15
+ extensions: ['.css', '.scss'],
16
+ plugins: [discardDuplicates()],
17
+ extract: true,
18
+ }),
19
+ ],
20
+ },
21
+ {
22
+ input: 'src/html.scss',
23
+ output: {
24
+ dir: './dist',
25
+ sourcemap: false,
26
+ format: 'esm',
27
+ compact: true,
28
+ },
29
+ plugins: [
30
+ postcss({
31
+ extensions: ['.css', '.scss'],
32
+ plugins: [discardDuplicates()],
33
+ extract: true,
34
+ }),
35
+ ],
36
+ },
37
+ ];
package/src/html.scss CHANGED
@@ -5,4 +5,4 @@
5
5
 
6
6
  /* Collection of all semantic HTML styles in the component library */
7
7
 
8
- @import "../../../components/html-content/css";
8
+ @import "~@utrecht/html-content-css/src";
package/src/index.scss CHANGED
@@ -16,4 +16,4 @@
16
16
  * @import "@utrecht/blockquote/index";
17
17
  */
18
18
 
19
- @import "../../../components/index";
19
+ @import "~@utrecht/components/index";