X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/307bdf7ed25af2ff5cb340398ce069ddb0d81b16..cf3e8f8daa0f2f4b014b9df6c32a436248237140:/rollup.config.js diff --git a/rollup.config.js b/rollup.config.js index db42070..757a22d 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -3,6 +3,7 @@ import commonjs from '@rollup/plugin-commonjs'; 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'; @@ -18,7 +19,7 @@ function serve() { return { writeBundle() { if (server) return; - server = require('child_process').spawn('yarn', ['start', '-d'], { + server = spawn('yarn', ['start', '-d'], { stdio: ['ignore', 'inherit', 'inherit'], shell: true }); @@ -45,7 +46,8 @@ export default { } }), 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