]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - rollup.config.js
Rebundle latest version
[nominatim-ui.git] / rollup.config.js
index db42070d2ef196cf1c6e391557d54a48a968c0e5..757a22d15f9743d32306b6d9484adce37ff32357 100644 (file)
@@ -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