@allurereport/web-classic 3.0.0-beta.9 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +1 -1
- package/dist/multi/10.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/222.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/26.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/302.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/304.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/369.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/389.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/498.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/60.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/643.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/671.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/725.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/770.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/848.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/853.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/872.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/895.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/920.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/979.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/991.app-81fc0bb26fd1b73b22f9.js +1 -0
- package/dist/multi/app-81fc0bb26fd1b73b22f9.js +2 -0
- package/dist/multi/{app-e5caa85e.js.LICENSE.txt → app-81fc0bb26fd1b73b22f9.js.LICENSE.txt} +9 -0
- package/dist/multi/manifest.json +26 -26
- package/dist/multi/styles-02faf4bb6ebabe212265.css +284 -0
- package/dist/single/app-997b57d6b8885a4f88c7.js +2 -0
- package/dist/single/{app-006b2a35.js.LICENSE.txt → app-997b57d6b8885a4f88c7.js.LICENSE.txt} +9 -0
- package/dist/single/manifest.json +1 -1
- package/package.json +19 -18
- package/src/assets/scss/palette.scss +391 -391
- package/src/assets/scss/theme.scss +288 -79
- package/src/components/Behaviors/BehaviorsList.tsx +3 -3
- package/src/components/Categories/CategoriesList.tsx +3 -3
- package/src/components/Footer/FooterLogo.tsx +1 -2
- package/src/components/Footer/FooterVersion.tsx +2 -2
- package/src/components/HeaderActions/HeaderActions.tsx +1 -2
- package/src/components/Modal/index.tsx +2 -2
- package/src/components/Overview/Overview.module.scss +29 -0
- package/src/components/Overview/index.tsx +101 -5
- package/src/components/Packages/PackagesList.tsx +3 -3
- package/src/components/ReportBody/index.tsx +2 -4
- package/src/components/ReportHeader/ReportHeaderLogo.tsx +6 -2
- package/src/components/ReportHeader/index.tsx +2 -2
- package/src/components/ReportMetadata/MetadataSummary.tsx +1 -2
- package/src/components/TestResult/TestResultAttachmentsView/index.tsx +2 -2
- package/src/components/TestResult/TestResultDescription/index.tsx +2 -2
- package/src/components/TestResult/TestResultEmpty/index.tsx +2 -9
- package/src/components/TestResult/TestResultHeader/index.tsx +3 -5
- package/src/components/TestResult/TestResultHistory/index.tsx +2 -2
- package/src/components/TestResult/TestResultInfo/TestResultInfoStatuses.tsx +1 -1
- package/src/components/TestResult/TestResultInfo/index.tsx +2 -2
- package/src/components/TestResult/TestResultLinks/index.tsx +2 -2
- package/src/components/TestResult/TestResultMetadata/index.tsx +2 -2
- package/src/components/TestResult/TestResultNavigation/index.tsx +2 -2
- package/src/components/TestResult/TestResultOverview.tsx +2 -2
- package/src/components/TestResult/TestResultParameters/index.tsx +2 -2
- package/src/components/TestResult/TestResultPrevStatuses/index.tsx +7 -7
- package/src/components/TestResult/TestResultRetriesView/TestResultRetriesItem.tsx +24 -8
- package/src/components/TestResult/TestResultRetriesView/index.tsx +10 -3
- package/src/components/TestResult/TestResultSetup/index.tsx +2 -2
- package/src/components/TestResult/TestResultSeverity/index.tsx +1 -1
- package/src/components/TestResult/TestResultStatus/index.tsx +1 -1
- package/src/components/TestResult/TestResultSteps/HtmlAttachmentPreview.tsx +28 -2
- package/src/components/TestResult/TestResultSteps/index.tsx +4 -4
- package/src/components/TestResult/TestResultSteps/styles.scss +1 -5
- package/src/components/TestResult/TestResultTeardown/index.tsx +2 -2
- package/src/components/TestResult/index.tsx +4 -4
- package/src/components/Tree/Tree.tsx +3 -3
- package/src/components/Tree/TreeHeader.tsx +1 -1
- package/src/components/Tree/index.tsx +3 -3
- package/src/index.tsx +1 -5
- package/src/stores/behaviors.ts +6 -6
- package/src/stores/categories.ts +6 -6
- package/src/stores/chart.ts +1 -1
- package/src/stores/charts.ts +22 -0
- package/src/stores/envInfo.ts +1 -1
- package/src/stores/locale.ts +3 -2
- package/src/stores/packages.ts +6 -6
- package/src/stores/router.ts +0 -2
- package/src/stores/stats.ts +1 -1
- package/src/stores/testResults.ts +4 -4
- package/src/stores/theme.ts +15 -18
- package/src/stores/tree.ts +6 -6
- package/src/stores/trend.ts +36 -0
- package/src/translations/am.json +2 -1
- package/src/translations/az.json +2 -1
- package/src/translations/de.json +2 -2
- package/src/translations/en.json +10 -1
- package/src/translations/es.json +2 -1
- package/src/translations/fr.json +2 -1
- package/src/translations/he.json +2 -1
- package/src/translations/it.json +2 -1
- package/src/translations/ja.json +2 -1
- package/src/translations/ka.json +2 -1
- package/src/translations/kr.json +2 -1
- package/src/translations/nl.json +2 -1
- package/src/translations/pl.json +2 -1
- package/src/translations/pt.json +2 -1
- package/src/translations/ru.json +2 -1
- package/src/translations/sv.json +2 -1
- package/src/translations/tr.json +2 -1
- package/src/translations/zh.json +2 -1
- package/src/utils/treeFilters.ts +13 -18
- package/test/dummy.test.ts +7 -0
- package/test/utils/treeFilters.test.ts +44 -44
- package/types.d.ts +22 -20
- package/webpack.config.js +8 -3
- package/.babelrc--old.cjs +0 -18
- package/.eslintrc--old.cjs +0 -125
- package/dist/multi/10.app-e5caa85e.js +0 -1
- package/dist/multi/222.app-e5caa85e.js +0 -1
- package/dist/multi/26.app-e5caa85e.js +0 -1
- package/dist/multi/302.app-e5caa85e.js +0 -1
- package/dist/multi/304.app-e5caa85e.js +0 -1
- package/dist/multi/369.app-e5caa85e.js +0 -1
- package/dist/multi/389.app-e5caa85e.js +0 -1
- package/dist/multi/498.app-e5caa85e.js +0 -1
- package/dist/multi/60.app-e5caa85e.js +0 -1
- package/dist/multi/643.app-e5caa85e.js +0 -1
- package/dist/multi/671.app-e5caa85e.js +0 -1
- package/dist/multi/725.app-e5caa85e.js +0 -1
- package/dist/multi/770.app-e5caa85e.js +0 -1
- package/dist/multi/848.app-e5caa85e.js +0 -1
- package/dist/multi/853.app-e5caa85e.js +0 -1
- package/dist/multi/872.app-e5caa85e.js +0 -1
- package/dist/multi/895.app-e5caa85e.js +0 -1
- package/dist/multi/920.app-e5caa85e.js +0 -1
- package/dist/multi/979.app-e5caa85e.js +0 -1
- package/dist/multi/991.app-e5caa85e.js +0 -1
- package/dist/multi/app-e5caa85e.js +0 -2
- package/dist/multi/styles-e5caa85e.css +0 -283
- package/dist/single/app-006b2a35.js +0 -2
- package/package--old.json +0 -106
- package/src/components/ReportLogo/index.tsx +0 -16
- package/src/components/ReportLogo/styles.scss +0 -20
- package/src/components/ReportLogoFull/index.tsx +0 -20
- package/src/components/ReportLogoFull/styles.scss +0 -7
- package/src/utils/capitalize.ts +0 -6
- package/webpack.config--old.js +0 -127
- /package/dist/multi/{JetBrainsMono_vf-b9a9c326..woff → JetBrainsMono_vf.woff} +0 -0
- /package/dist/multi/{JetBrainsMono_vf-9e9649b6..woff2 → JetBrainsMono_vf.woff2} +0 -0
- /package/dist/multi/{pt-root-ui_vf-22fe60ca..woff → pt-root-ui_vf.woff} +0 -0
- /package/dist/multi/{pt-root-ui_vf-9d251e8b..woff2 → pt-root-ui_vf.woff2} +0 -0
package/package--old.json
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@allurereport/web-classic",
|
|
3
|
-
"version": "3.0.0-beta.7",
|
|
4
|
-
"description": "The static files for Allure Classic Report",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"allure",
|
|
7
|
-
"testing",
|
|
8
|
-
"report",
|
|
9
|
-
"html"
|
|
10
|
-
],
|
|
11
|
-
"repository": "https://github.com/allure-framework/allure3",
|
|
12
|
-
"license": "Apache-2.0",
|
|
13
|
-
"author": "Qameta Software",
|
|
14
|
-
"type": "module",
|
|
15
|
-
"types": "./types.d.ts",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"clean": "rimraf dist",
|
|
18
|
-
"build": "run-s clean 'build:prod:*'",
|
|
19
|
-
"build:dev": "run-s clean 'build:dev:*'",
|
|
20
|
-
"build:prod:single": "SINGLE_FILE_MODE=1 webpack --mode production",
|
|
21
|
-
"build:prod:multi": "webpack --mode production",
|
|
22
|
-
"build:dev:single": "SINGLE_FILE_MODE=1 webpack --mode development",
|
|
23
|
-
"build:dev:multi": "webpack --mode development",
|
|
24
|
-
"lint": "eslint --ignore-path=.gitignore ./src",
|
|
25
|
-
"lint:fix": "eslint --fix --ignore-path=.gitignore ./src",
|
|
26
|
-
"prettier:format": "prettier --write 'src/**/*.{js,css,scss}'"
|
|
27
|
-
},
|
|
28
|
-
"browserslist": [
|
|
29
|
-
"last 1 version",
|
|
30
|
-
"> 1%",
|
|
31
|
-
"IE 11"
|
|
32
|
-
],
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"@allurereport/web-commons": "workspace:*",
|
|
35
|
-
"@babel/runtime": "^7.25.6",
|
|
36
|
-
"b_": "^1.3.4",
|
|
37
|
-
"backbone": "^1.6.0",
|
|
38
|
-
"backbone.marionette": "^3.5.1",
|
|
39
|
-
"d3-array": "^3.2.4",
|
|
40
|
-
"d3-axis": "^3.0.0",
|
|
41
|
-
"d3-brush": "^3.0.0",
|
|
42
|
-
"d3-drag": "^3.0.0",
|
|
43
|
-
"d3-dsv": "^3.0.1",
|
|
44
|
-
"d3-interpolate": "^3.0.1",
|
|
45
|
-
"d3-scale": "^4.0.2",
|
|
46
|
-
"d3-scale-chromatic": "^3.1.0",
|
|
47
|
-
"d3-selection": "^3.0.0",
|
|
48
|
-
"d3-shape": "^3.2.0",
|
|
49
|
-
"filesize": "^10.1.6",
|
|
50
|
-
"handlebars": "^4.7.8",
|
|
51
|
-
"highlight.js": "^10.7.3",
|
|
52
|
-
"i18next": "^8.4.3",
|
|
53
|
-
"jquery": "^3.7.1",
|
|
54
|
-
"postcss": "^8.4.47",
|
|
55
|
-
"sortablejs": "^1.15.3",
|
|
56
|
-
"split.js": "^1.6.5",
|
|
57
|
-
"underscore": "^1.13.7",
|
|
58
|
-
"url": "^0.11.4"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"@babel/core": "^7.26.0",
|
|
62
|
-
"@babel/eslint-parser": "^7.25.9",
|
|
63
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
64
|
-
"@babel/plugin-proposal-decorators": "^7.24.7",
|
|
65
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
66
|
-
"@babel/plugin-transform-runtime": "^7.25.4",
|
|
67
|
-
"@babel/preset-env": "^7.25.4",
|
|
68
|
-
"@stylistic/eslint-plugin": "^2.6.1",
|
|
69
|
-
"@types/eslint": "^8.56.11",
|
|
70
|
-
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
71
|
-
"@typescript-eslint/parser": "^8.0.0",
|
|
72
|
-
"autoprefixer": "^10.4.20",
|
|
73
|
-
"babel-eslint": "^10.1.0",
|
|
74
|
-
"babel-loader": "^9.2.1",
|
|
75
|
-
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
76
|
-
"css-loader": "^7.1.2",
|
|
77
|
-
"css-minimizer-webpack-plugin": "^6.0.0",
|
|
78
|
-
"date-fns": "^1.30.1",
|
|
79
|
-
"eslint": "^8.57.0",
|
|
80
|
-
"eslint-config-prettier": "^9.1.0",
|
|
81
|
-
"eslint-plugin-import": "^2.29.1",
|
|
82
|
-
"eslint-plugin-jsdoc": "^50.0.0",
|
|
83
|
-
"eslint-plugin-n": "^17.10.1",
|
|
84
|
-
"eslint-plugin-no-null": "^1.0.2",
|
|
85
|
-
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
86
|
-
"file-loader": "^6.2.0",
|
|
87
|
-
"handlebars-loader": "^1.7.3",
|
|
88
|
-
"mini-css-extract-plugin": "^2.9.1",
|
|
89
|
-
"normalize-css": "^2.3.1",
|
|
90
|
-
"npm-run-all2": "^7.0.1",
|
|
91
|
-
"postcss-loader": "^8.1.1",
|
|
92
|
-
"postcss-rtl": "^2.0.0",
|
|
93
|
-
"prettier": "^3.3.3",
|
|
94
|
-
"rimraf": "^6.0.1",
|
|
95
|
-
"sass": "^1.79.1",
|
|
96
|
-
"sass-loader": "^16.0.1",
|
|
97
|
-
"source-map-loader": "^5.0.0",
|
|
98
|
-
"style-loader": "^3.3.4",
|
|
99
|
-
"svg-sprite-loader": "^6.0.11",
|
|
100
|
-
"underscore.string": "^3.3.6",
|
|
101
|
-
"webpack": "^5.94.0",
|
|
102
|
-
"webpack-cli": "^5.1.4",
|
|
103
|
-
"webpack-manifest-plugin": "^5.0.0",
|
|
104
|
-
"webpack-merge": "^6.0.1"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { getReportOptions } from "@allurereport/web-commons";
|
|
2
|
-
import { SvgIcon, allureIcons } from "@allurereport/web-components";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import type { AllureAwesomeReportOptions } from "types";
|
|
5
|
-
import * as styles from "./styles.scss";
|
|
6
|
-
|
|
7
|
-
export const ReportLogo = (props: { className?: string; logo?: never }) => {
|
|
8
|
-
const { className } = props;
|
|
9
|
-
const { logo } = getReportOptions<AllureAwesomeReportOptions>() ?? {};
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<div className={clsx(styles["report-logo"], className)}>
|
|
13
|
-
{logo ? <img src={logo} alt="report logo" /> : <SvgIcon id={allureIcons.reportLogo} inline />}
|
|
14
|
-
</div>
|
|
15
|
-
);
|
|
16
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.report-logo {
|
|
2
|
-
padding: 8px;
|
|
3
|
-
background: var(--bg-base-secondary);
|
|
4
|
-
border-radius: 8px;
|
|
5
|
-
width: 48px;
|
|
6
|
-
height: 48px;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
|
|
11
|
-
img {
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 100%;
|
|
14
|
-
object-fit: contain;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.text {
|
|
19
|
-
color: var(--on-text-primary);
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SvgIcon, allureIcons } from "@allurereport/web-components";
|
|
2
|
-
import { Text } from "@allurereport/web-components";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import * as styles from "./styles.scss";
|
|
5
|
-
|
|
6
|
-
export const ReportLogoFull = (props: {
|
|
7
|
-
/**
|
|
8
|
-
* Additional class name
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
}) => {
|
|
12
|
-
const { className } = props;
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<Text type="paragraph" size="m" bold className={clsx(className, styles.text)}>
|
|
16
|
-
<SvgIcon id={allureIcons.reportLogo} size="m" inline className={styles.logo} />
|
|
17
|
-
<span>Allure Report</span>
|
|
18
|
-
</Text>
|
|
19
|
-
);
|
|
20
|
-
};
|
package/src/utils/capitalize.ts
DELETED
package/webpack.config--old.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import MiniCssExtractPlugin from "mini-css-extract-plugin";
|
|
2
|
-
import { dirname, join } from "node:path";
|
|
3
|
-
import { env } from "node:process";
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
5
|
-
import SpriteLoaderPlugin from "svg-sprite-loader/plugin.js";
|
|
6
|
-
import webpack from "webpack";
|
|
7
|
-
import { WebpackManifestPlugin } from "webpack-manifest-plugin";
|
|
8
|
-
import * as utils from "./webpack/utils.js";
|
|
9
|
-
|
|
10
|
-
const { SINGLE_FILE_MODE } = env;
|
|
11
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
12
|
-
|
|
13
|
-
export default (env, argv) => {
|
|
14
|
-
const config = {
|
|
15
|
-
entry: "./src/index.js",
|
|
16
|
-
output: {
|
|
17
|
-
path: join(__dirname, SINGLE_FILE_MODE ? "dist/single" : "dist/multi"),
|
|
18
|
-
filename: "app-[hash:8].js",
|
|
19
|
-
assetModuleFilename: `[name]-[hash:8][ext]`,
|
|
20
|
-
},
|
|
21
|
-
module: {
|
|
22
|
-
rules: [
|
|
23
|
-
{
|
|
24
|
-
test: /\.(ts|js)x?$/,
|
|
25
|
-
use: "babel-loader",
|
|
26
|
-
exclude: /node_modules/,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
test: /\.css$/,
|
|
30
|
-
use: [MiniCssExtractPlugin.loader, "css-loader"]
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
test: /\.scss$/,
|
|
34
|
-
use: [
|
|
35
|
-
MiniCssExtractPlugin.loader,
|
|
36
|
-
{
|
|
37
|
-
loader: "css-loader",
|
|
38
|
-
// TODO: uncomment when we'll start migration to preact
|
|
39
|
-
// options: {
|
|
40
|
-
// modules: true,
|
|
41
|
-
// },
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
loader: "sass-loader",
|
|
45
|
-
options: {
|
|
46
|
-
api: "modern",
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
test: /\.hbs$/,
|
|
53
|
-
use: {
|
|
54
|
-
loader: "handlebars-loader",
|
|
55
|
-
options: {
|
|
56
|
-
helperDirs: [
|
|
57
|
-
utils.root("src/helpers"),
|
|
58
|
-
utils.root("src/blocks"),
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
test: /translations\/\D+\.json$/,
|
|
65
|
-
type: "asset/source",
|
|
66
|
-
},
|
|
67
|
-
// FIXME: how can we solve the problem with svg in css?
|
|
68
|
-
// {
|
|
69
|
-
// test: /\.svg$/,
|
|
70
|
-
// type: "asset/inline",
|
|
71
|
-
// resourceQuery: /inline/,
|
|
72
|
-
// },
|
|
73
|
-
{
|
|
74
|
-
test: /\.svg$/,
|
|
75
|
-
loader: "svg-sprite-loader",
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
test: /\.(ico)(\?.*)?$/,
|
|
79
|
-
loader: "file-loader",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
test: /\.(png|jpe?g|gif|woff2?|otf|ttf|eot)$/i,
|
|
83
|
-
type: SINGLE_FILE_MODE ? "asset/inline" : "asset/resource",
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
devServer: {
|
|
88
|
-
open: true,
|
|
89
|
-
hot: true,
|
|
90
|
-
},
|
|
91
|
-
plugins: [
|
|
92
|
-
new webpack.DefinePlugin({
|
|
93
|
-
"DEVELOPMENT": argv?.mode === "development",
|
|
94
|
-
"process.env": {
|
|
95
|
-
DEBUG_INFO_ENABLED: argv?.mode === "development",
|
|
96
|
-
},
|
|
97
|
-
}),
|
|
98
|
-
new MiniCssExtractPlugin({
|
|
99
|
-
filename: "styles-[hash:8].css",
|
|
100
|
-
}),
|
|
101
|
-
new SpriteLoaderPlugin(),
|
|
102
|
-
new WebpackManifestPlugin({
|
|
103
|
-
publicPath: "",
|
|
104
|
-
}),
|
|
105
|
-
],
|
|
106
|
-
resolve: {
|
|
107
|
-
modules: ["node_modules"],
|
|
108
|
-
extensions: [".js", ".json"],
|
|
109
|
-
alias: {
|
|
110
|
-
"@": join(__dirname, "src"),
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
if (SINGLE_FILE_MODE) {
|
|
116
|
-
config.optimization = {
|
|
117
|
-
splitChunks: false,
|
|
118
|
-
}
|
|
119
|
-
config.plugins.push(
|
|
120
|
-
new webpack.optimize.LimitChunkCountPlugin({
|
|
121
|
-
maxChunks: 1,
|
|
122
|
-
}),
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return config;
|
|
127
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|