Skip to content

Commit

Permalink
fix(sass): 添加dart-sass && 删除monaco 编辑器
Browse files Browse the repository at this point in the history
优化打包大小
  • Loading branch information
h7ml committed Jul 8, 2022
1 parent baad8e1 commit b035a1a
Show file tree
Hide file tree
Showing 35 changed files with 132,762 additions and 151,764 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ alt="Vulnerablities" maxretrytimes="3" class="m-1 transition-all duration-1000">
## Installation

```bash
yarn add vue-amis-sdk --save
yarn add vue-amis-sdk @fortawesome/fontawesome-free --save
```

## Quick Start
Expand Down
2 changes: 1 addition & 1 deletion _examples/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<meta charset="utf-8">
<title>vue-amis-sdk@2.0.0</title>
<title>vue-amis-sdk@2.0.6</title>

<script src="https://unpkg.com/vue@2.6.4/dist/vue.js"></script>
<script src="https://unpkg.com/vue-amis-sdk"></script>
Expand Down
5 changes: 5 additions & 0 deletions examples/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import Vue from "vue";
import App from "./App.vue";

// fortawesome
import "@fortawesome/fontawesome-free/css/all.css";
import "@fortawesome/fontawesome-free/js/all";

import VueAmisSdk from "./../packages/index";
Vue.use(VueAmisSdk);
console.log(VueAmisSdk);
Expand Down
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@
"files": [
"_examples/*",
"packages/*",
"sdk/css.worker.js",
"sdk/editor.worker.js",
"sdk/html.worker.js",
"sdk/json.worker.js",
"sdk/ts.worker.js",
"sdk/vue-amis-sdk.umd.js",
"sdk/vue-amis-sdk.common.js",
"sdk/demo.html",
"sdk/vue-amis-sdk.css",
"README.md"
],
"scripts": {
"test": "npm install vue-amis-sdk",
"updates": "ncu -u amis amis-editor",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
Expand All @@ -46,8 +42,6 @@
"core-js": "^3.6.5",
"css-loader": "^6.6.0",
"http-proxy-middleware": "^2.0.6",
"monaco-editor": "0.30.1",
"monaco-editor-webpack-plugin": "6.0.0",
"postcss-custom-properties": "^12.1.4",
"react": "^16.14.0",
"react-dom": "^16.14.0",
Expand Down
7 changes: 2 additions & 5 deletions packages/VueAmisSdk/src/VueAmisSdk.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
</div>
</template>
<script>
// fortawesome
import "./style.scss";
import "@fortawesome/fontawesome-free/css/all.css";
import "@fortawesome/fontawesome-free/js/all";
import { Editor, ShortcutKey } from "amis-editor";
import { ReactInVue } from "vuera";
Expand Down Expand Up @@ -91,7 +87,8 @@ export default {
},
};
</script>
<style>
<style lang="scss">
@import "./style.scss";
/* 解决 amis-editor icon 图标过大 */
.editor-right-panel
.editorPanel-tabs
Expand Down
1 change: 0 additions & 1 deletion sdk/css.worker.js

This file was deleted.

1 change: 1 addition & 0 deletions sdk/css/6973.45c0ea5d.css

Large diffs are not rendered by default.

Loading

0 comments on commit b035a1a

Please sign in to comment.