boka-human-cliend-v2 0.0.21 → 0.0.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boka-human-cliend-v2",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "main": "dist/boka-human-v2.umd.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve src/demo/main.js",
@@ -12,6 +12,9 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@vue/cli-service": "^4.5.0",
15
+ "less": "^3.13.1",
16
+ "less-loader": "^4.1.0",
17
+ "vue-loader": "^17.4.2",
15
18
  "vue-template-compiler": "^2.6.0"
16
19
  },
17
20
  "dependencies": {
@@ -233,7 +233,7 @@ export default {
233
233
  }
234
234
  </script>
235
235
 
236
- <style>
236
+ <style lang="less">
237
237
  /* 可根据需要添加样式 */
238
238
  .boka-human-v2 {
239
239
  overflow: hidden;
package/vue.config.js CHANGED
@@ -12,18 +12,13 @@ module.exports = {
12
12
  // 让 UMD 构建支持在浏览器和 Node.js 环境中使用
13
13
  umdNamedDefine: true
14
14
  }
15
- /*,
16
- externals: {
17
- // 告诉打包工具 vue 是外部依赖,不打包进去
18
- vue: {
19
- commonjs: 'vue',
20
- commonjs2: 'vue',
21
- amd: 'vue',
22
- root: 'Vue' // 全局变量名
15
+ },
16
+ css: {
17
+ loaderOptions: {
18
+ less: {
23
19
  }
24
- }*/
20
+ }
25
21
  },
26
-
27
22
  chainWebpack: config => {
28
23
  // 修改入口文件
29
24
  config.entry('app').clear().add(path.resolve(__dirname, 'src/index.js'))