Skip to content

Commit

Permalink
🤔 save-file: 测试样式打包;
Browse files Browse the repository at this point in the history
  • Loading branch information
ruan-cat committed Sep 29, 2024
1 parent 905d017 commit 122eb21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion learn-create-compoents-lib/components/src/Input/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,12 @@ defineExpose({
});
</script>

<!-- 有疑惑 不清楚这样写的语法对不对 -->
<!--
有疑惑 不清楚这样写的语法对不对
经过打包测试 该样式确实可以参与打包的
-->
<style scoped lang="scss" src="./style/index.scss"></style>

<!-- <style scoped lang="scss">
@import "./style/index.scss";
</style> -->
2 changes: 1 addition & 1 deletion learn-create-compoents-lib/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineConfig(() => {
},
lib: {
// 指定入口文件
entry: "src/index.ts",
entry: "./src/index.ts",
// 模块名
name: "GIE_COMPONENTS",
},
Expand Down

0 comments on commit 122eb21

Please sign in to comment.