mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-26 06:59:52 +03:00
feat(riot-v5): add config for router and register tag instead of import
This commit is contained in:
parent
142727e8ac
commit
ea21483346
7 changed files with 49 additions and 20 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue