mirror of
https://github.com/exchanges-lab/view.git
synced 2026-08-08 06:24:43 +08:00
Upload files.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/* globals process */
|
||||
|
||||
import terser from '@rollup/plugin-terser';
|
||||
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
||||
|
||||
const environment = process.env.ENV || 'development';
|
||||
const isDevelopmentEnv = (environment === 'development');
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'lib/udf-compatible-datafeed.js',
|
||||
output: {
|
||||
name: 'Datafeeds',
|
||||
format: 'umd',
|
||||
file: 'dist/bundle.js',
|
||||
},
|
||||
plugins: [
|
||||
nodeResolve(),
|
||||
!isDevelopmentEnv && terser({
|
||||
ecma: 2021,
|
||||
output: { inline_script: true },
|
||||
}),
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user