-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cc4a08
commit ea629b3
Showing
6 changed files
with
33 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist/ | ||
node_modules/ | ||
.rpt2_cache/ | ||
.rpt2_cache/ | ||
.tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.idea/ | ||
.rpt2_cache/ | ||
|
||
.editorconfig | ||
.travis.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,24 @@ | ||
import minify from 'rollup-plugin-babel-minify'; | ||
import cjs from 'rollup-plugin-commonjs'; | ||
import nodeResolve from 'rollup-plugin-node-resolve'; | ||
import replace from 'rollup-plugin-replace'; | ||
import typescript from 'rollup-plugin-typescript2'; | ||
|
||
export default [{ | ||
export default { | ||
input: 'src/index.ts', | ||
output: { | ||
file: 'dist/bundle.min.js', | ||
format: 'es', | ||
sourcemap: false, | ||
}, | ||
plugins: [ // No nodeResolve here to avoid bundling dependencies | ||
typescript(), | ||
cjs(), | ||
minify({ comments: false }), | ||
], | ||
}, { | ||
input: 'src/index.ts', | ||
output: { | ||
file: 'dist/bundle+deps.min.js', | ||
format: 'es', | ||
file: '.tmp/index.min.js', | ||
format: 'umd', | ||
name: 'FitHtml', | ||
sourcemap: false, | ||
}, | ||
plugins: [ | ||
nodeResolve({ browser: true }), | ||
typescript(), | ||
cjs(), | ||
replace({ | ||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'develop'), | ||
}), | ||
minify({ comments: false }), | ||
], | ||
}]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters