forked from gbtami/pychess-variants
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.dev.js
More file actions
26 lines (25 loc) · 885 Bytes
/
rollup.config.dev.js
File metadata and controls
26 lines (25 loc) · 885 Bytes
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
import typescript from '@rollup/plugin-typescript';
import nodeResolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
const postcss = require('rollup-plugin-postcss')
export default {
input: "client/main.ts",
output: {
name: "PychessVariants",
file: "static/pychess-variants.js",
format: "iife",
sourcemap: "inline",
},
plugins: [
nodeResolve(),
postcss({
config: false, // don't attempt to load a postcss config
// extract: true
// ^^^ for writing CSS to a separate file (dist/main.css).
// in rollup v2, this writes CSS rules in wrong order (https://github.com/egoist/rollup-plugin-postcss/issues/96)
// so, disable for now, and allow the CSS to be embedded in the JS
}),
commonjs(),
typescript(),
],
}