Remove unused variable
This commit is contained in:
parent
35c7d6ff29
commit
d66c141e8d
4 changed files with 0 additions and 21 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
const { resolve } = require('path');
|
const { resolve } = require('path');
|
||||||
|
|
||||||
const config = require('@redhat-cloud-services/frontend-components-config');
|
const config = require('@redhat-cloud-services/frontend-components-config');
|
||||||
const { GitRevisionPlugin } = require('git-revision-webpack-plugin');
|
|
||||||
const { DefinePlugin } = require('webpack');
|
|
||||||
|
|
||||||
const webpackProxy = {
|
const webpackProxy = {
|
||||||
useProxy: true,
|
useProxy: true,
|
||||||
|
|
@ -38,12 +36,6 @@ plugins.push(
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
plugins.push(
|
|
||||||
new DefinePlugin({
|
|
||||||
COMMITHASH: JSON.stringify(new GitRevisionPlugin().commithash()),
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...webpackConfig,
|
...webpackConfig,
|
||||||
plugins,
|
plugins,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
const { resolve } = require('path');
|
const { resolve } = require('path');
|
||||||
|
|
||||||
const config = require('@redhat-cloud-services/frontend-components-config');
|
const config = require('@redhat-cloud-services/frontend-components-config');
|
||||||
const { GitRevisionPlugin } = require('git-revision-webpack-plugin');
|
|
||||||
const { DefinePlugin } = require('webpack');
|
|
||||||
const { config: webpackConfig, plugins } = config({
|
const { config: webpackConfig, plugins } = config({
|
||||||
rootFolder: resolve(__dirname, '../'),
|
rootFolder: resolve(__dirname, '../'),
|
||||||
sassPrefix: '.imageBuilder',
|
sassPrefix: '.imageBuilder',
|
||||||
|
|
@ -21,12 +19,6 @@ plugins.push(
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
plugins.push(
|
|
||||||
new DefinePlugin({
|
|
||||||
COMMITHASH: JSON.stringify(new GitRevisionPlugin().commithash()),
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...webpackConfig,
|
...webpackConfig,
|
||||||
plugins,
|
plugins,
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,6 @@
|
||||||
"!src/entry-dev.js"
|
"!src/entry-dev.js"
|
||||||
],
|
],
|
||||||
"testEnvironment": "jsdom",
|
"testEnvironment": "jsdom",
|
||||||
"globals": {
|
|
||||||
"COMMITHASH": "dummy"
|
|
||||||
},
|
|
||||||
"roots": [
|
"roots": [
|
||||||
"<rootDir>/src/"
|
"<rootDir>/src/"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
/* global COMMITHASH */
|
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
import { Button, Popover, Text, TextContent } from '@patternfly/react-core';
|
import { Button, Popover, Text, TextContent } from '@patternfly/react-core';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue