Skip to content
Snippets Groups Projects
Commit 17beac5a authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Use code splitting for the test suite instead of multi-entry

parent 250a6882
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
"main": "src/vpu-auth.js",
"devDependencies": {
"chai": "^4.2.0",
"glob": "^7.1.4",
"i18next-scanner": "^2.10.2",
"karma": "^4.2.0",
"karma-chai": "^0.1.0",
......@@ -18,7 +19,6 @@
"rollup-plugin-copy": "^3.1.0",
"rollup-plugin-delete": "^1.1.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-multi-entry": "^2.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-replace": "^2.2.0",
......
import path from 'path';
import glob from 'glob';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import copy from 'rollup-plugin-copy';
import {terser} from "rollup-plugin-terser";
import json from 'rollup-plugin-json';
import serve from 'rollup-plugin-serve';
import multiEntry from 'rollup-plugin-multi-entry';
import url from "rollup-plugin-url";
import consts from 'rollup-plugin-consts';
import del from 'rollup-plugin-delete';
const pkg = require('./package.json');
const build = (typeof process.env.BUILD !== 'undefined') ? process.env.BUILD : 'local';
console.log("build: " + build);
export default {
input: (build != 'test') ? ['src/vpu-auth.js', 'src/vpu-auth-demo.js'] : 'test/**/*.js',
input: (build != 'test') ? ['src/vpu-auth.js', 'src/vpu-auth-demo.js'] : glob.sync('test/**/*.js'),
output: {
dir: 'dist',
entryFileNames: '[name].js',
......@@ -28,7 +26,6 @@ export default {
del({
targets: 'dist/*'
}),
(build == 'test') ? multiEntry() : false,
consts({
environment: build,
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment