Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: 修改引用方式
  • Loading branch information
cycgit committed May 22, 2020
1 parent 09cfdca commit 9089dfc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
9 changes: 0 additions & 9 deletions jsconfig.json

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -82,8 +82,8 @@
"site:build": "npm run site:clean && gatsby build --prefix-paths",
"site:clean": "gatsby clean",
"site:deploy": "npm run site:build && gh-pages -d public",
"build": "rollup --config",
"build-lib": "babel src --out-dir lib",
"build": "rm -rf build && rm -rf dist && rollup --config",
"build-lib": "rm -rf lib && babel src --out-dir lib",
"ci": "npm run lint && npm run test",
"coverage": "jest --coverage",
"demos": "electron ./demos/app.js",
Expand Down
24 changes: 15 additions & 9 deletions rollup.config.js
Expand Up @@ -13,14 +13,16 @@ export default [
input: './src/index-all.js',
output: [
{
name: 'F2-all',
name: 'F2',
file: 'build/f2-all.js',
format: 'umd'
format: 'umd',
exports: 'named'
},
{
name: 'F2-all',
name: 'F2',
file: 'dist/f2-all.min.js',
format: 'umd',
exports: 'named',
plugins: [ terserPlugin ]
}
],
Expand All @@ -30,14 +32,16 @@ export default [
input: './src/index.js',
output: [
{
name: 'F2-all',
name: 'F2',
file: 'build/f2.js',
format: 'umd'
format: 'umd',
exports: 'named'
},
{
name: 'F2-all',
name: 'F2',
file: 'dist/f2.min.js',
format: 'umd',
exports: 'named',
plugins: [ terserPlugin ]
}
],
Expand All @@ -47,14 +51,16 @@ export default [
input: './src/index-simple.js',
output: [
{
name: 'F2-simple',
name: 'F2',
file: 'build/f2-simple.js',
format: 'umd'
format: 'umd',
exports: 'named'
},
{
name: 'F2-all',
name: 'F2',
file: 'dist/f2-simple.min.js',
format: 'umd',
exports: 'named',
plugins: [ terserPlugin ]
}
],
Expand Down

0 comments on commit 9089dfc

Please sign in to comment.