Skip to content

Commit c5738fc

Browse files
authored
fix: issues for asset paths and rename webpack.assets-paths (#143)
fix: issues for asset paths and rename webpack.assets-paths to sass.assets-path
1 parent c30fad7 commit c5738fc

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

scss/_rollup.assets-paths.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// If this library is used as an npm dependency, and the source files should be included rather than css, this corrects the paths.
2-
$icons-path: "@db-ui/core/dist/icons/";
3-
$images-path: "@db-ui/core/dist/images/";
4-
$fonts-path: "@db-ui/core/dist/fonts/";
2+
@use "default.assets-paths" as * with (
3+
$icons-path: "@db-ui/base/build/assets/icons/",
4+
$images-path: "@db-ui/base/build/assets/images/",
5+
$fonts-path: "@db-ui/base/build/assets/fonts/"
6+
);

scss/_sass.assets-paths.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// If this library is used as an npm dependency, and the source files should be included rather than css, this corrects the paths.
2+
@use "default.assets-paths" with (
3+
$icons-path: "~@db-ui/base/build/assets/icons/",
4+
$images-path: "~@db-ui/base/build/assets/images/",
5+
$fonts-path: "~@db-ui/base/build/assets/fonts/"
6+
);

scss/_webpack.assets-paths.scss

Lines changed: 0 additions & 4 deletions
This file was deleted.

scss/icon/icons.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
// @import "icons.variables";
2-
3-
@use "icons.variables" as *;
4-
@use "icons.attributes-mappings" as *;
51
@use "icons.helpers" as *;
6-
@use "icons.custom-properties" as *;
7-
@use "icons.font-faces" as *;
2+
@use "icons.variables" as *;
83
@use "icons.placeholder" as *;
4+
@forward "icons.attributes-mappings";
5+
@forward "icons.custom-properties";
6+
@forward "icons.font-faces";
97

108
[data-icon],
119
[data-icon-before] {

0 commit comments

Comments
 (0)