generated from y1j2x34/rollup-ts-karma-mocha-chai-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.dev.config.js
37 lines (36 loc) · 978 Bytes
/
rollup.dev.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const plugins = require('./build/rollup.plugins');
const serve = require('rollup-plugin-serve');
module.exports = [
{
input: 'src/debug/index.ts',
output: {
file: './dist/index.js',
name: 'deformer',
sourcemap: true,
format: 'umd'
},
plugins: [
plugins.nodeResolve({
mainFields: ['main', 'browser', 'jsnext']
}),
plugins.commonjs({
include: 'node_modules/**',
ignore: ['js-base64'],
sourceMap: false
}),
plugins.strip(),
plugins.typescript(),
plugins.html({
title: 'Deformer development page'
}),
plugins.less({
insert: true
}),
serve({
contentBase: ['dist'],
port: 8888
})
],
external: ['txon']
}
];