Skip to content

Commit ac60124

Browse files
build(rollup): add rollup.config.js
1 parent 4b086be commit ac60124

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

rollup.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import commonjs from 'rollup-plugin-commonjs';
2+
import { uglify } from 'rollup-plugin-uglify';
3+
4+
const config = {
5+
input: 'index.js',
6+
output: {
7+
format: 'umd',
8+
name: 'InlineStyleParser'
9+
},
10+
plugins: [commonjs()]
11+
};
12+
13+
if (process.env.NODE_ENV === 'production') {
14+
config.plugins.push(uglify());
15+
}
16+
17+
export default config;

0 commit comments

Comments
 (0)