feat(riot-v5): add config for router and register tag instead of import

This commit is contained in:
Joxit 2021-03-06 00:58:37 +01:00
parent 142727e8ac
commit ea21483346
No known key found for this signature in database
GPG key ID: F526592B8E012263
7 changed files with 49 additions and 20 deletions

View file

@ -9,7 +9,7 @@ import serve from 'rollup-plugin-serve';
import html from '@rollup/plugin-html';
import htmlUseref from './rollup/html-useref';
import json from '@rollup/plugin-json';
import copy from 'rollup-plugin-copy'
import copy from 'rollup-plugin-copy';
const useServe = process.env.ROLLUP_SERVE === 'true';
const output = useServe ? '.serve' : 'dist';
@ -20,14 +20,14 @@ const plugins = [
nodeResolve(),
commonjs(),
scss({ output: `./${output}/docker-registry-ui.css`, outputStyle: 'compressed' }),
babel({ babelHelpers: 'bundled', presets: ['@babel/env'] }),
babel({ babelHelpers: 'bundled', presets: [['@babel/env', { useBuiltIns: 'usage' }]] }),
html({ template: () => htmlUseref('./src/index.html') }),
copy({
targets: [
{ src: 'src/fonts', dest: `${output}` },
{ src: 'src/images', dest: `${output}` },
]
})
],
}),
];
if (useServe) {