Skip to content

Commit

Permalink
update rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Zhukov committed Mar 2, 2018
1 parent 16f9ef7 commit c95f505
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/html.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"jest": "^22.1.4",
"lit-html": "^0.8.0",
"rollup": "^0.55.5",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-uglify": "^3.0.0"
},
"jest": {
Expand Down
7 changes: 7 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import uglify from 'rollup-plugin-uglify';
import babel from 'rollup-plugin-babel';

export default {
input: 'src/html.js',
Expand All @@ -8,6 +9,12 @@ export default {
name: 'MHTML'
},
plugins: [
babel({
babelrc: false,
presets: [
['es2015', { modules: false }],
],
}),
uglify()
]
};

0 comments on commit c95f505

Please sign in to comment.