Skip to content

Commit b7de8a4

Browse files
authored
Merge pull request #5 from danice/using-paths
Using paths to avoid having "module": "src/index.ts" entry in package
2 parents 0127240 + e182750 commit b7de8a4

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"noFallthroughCasesInSwitch": true
2121
},
2222
"paths": {
23-
"packages/*": ["packages/*"]
23+
"@materializecss/materialize": ["packages/materialize"],
2424
},
2525
"include": ["src"]
2626
}

vite.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ function getMenuItem(item) {
5353

5454
export default {
5555
base: "./",
56+
resolve: {
57+
alias: {
58+
'@materializecss/materialize/sass': path.resolve(__dirname, './packages/materialize/sass/'),
59+
'@materializecss/materialize': path.resolve(__dirname, './packages/materialize/src/')
60+
}
61+
},
5662
plugins: [
5763
handlebars({
5864
context(pagePath) {
@@ -87,4 +93,4 @@ export default {
8793
),
8894
},
8995
},
90-
};
96+
};

0 commit comments

Comments
 (0)