import resolve from '@rollup/plugin-node-resolve';
import livereload from 'rollup-plugin-livereload';
import { terser } from 'rollup-plugin-terser';
+import { spawn } from 'child_process';
import css from 'rollup-plugin-css-only';
import { readFileSync, writeFileSync } from 'fs';
return {
writeBundle() {
if (server) return;
- server = require('child_process').spawn('yarn', ['start', '-d'], {
+ server = spawn('yarn', ['start', '-d'], {
stdio: ['ignore', 'inherit', 'inherit'],
shell: true
});
}
}),
css({
- output: function (styles, styleNodes) {
+ // output: function (styles, styleNodes) {
+ output: function (styles) {
// make sure global_styles.css gets appended to bundle.css,
// not prepended.
// The ':global()' rules (https://svelte.dev/docs#style) get