Browse Source

added the rollup copy plugin as dependency and copy the fonts for the
bootstrap-table icons

NAME 5 years ago
parent
commit
9d54167029
2 changed files with 7 additions and 0 deletions
  1. 1 0
      package.json
  2. 6 0
      rollup.config.js

+ 1 - 0
package.json

@@ -23,6 +23,7 @@
     "rollup": "^2.6.1",
     "rollup-plugin-babel": "^4.3.3",
     "rollup-plugin-commonjs": "^10.0.0",
+    "rollup-plugin-copy": "^3.3.0",
     "rollup-plugin-inject": "^3.0.0",
     "rollup-plugin-multi-entry": "^2.1.0",
     "rollup-plugin-node-resolve": "^5.0.4",

+ 6 - 0
rollup.config.js

@@ -4,6 +4,7 @@ import resolve from 'rollup-plugin-node-resolve'
 import commonjs from 'rollup-plugin-commonjs'
 import { terser } from 'rollup-plugin-terser'
 import inject from 'rollup-plugin-inject'
+import copy from 'rollup-plugin-copy'
 import multiEntry from 'rollup-plugin-multi-entry'
 import vue from 'rollup-plugin-vue'
 
@@ -30,6 +31,11 @@ const plugins = [
   commonjs(),
   babel({
     exclude: 'node_modules/**'
+  }),
+  copy({
+    targets: [
+      { src: 'src/themes/bootstrap-table/fonts/*', dest: 'dist/themes/bootstrap-table/fonts' }
+    ]
   })
 ]