-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated eslintrc
- Loading branch information
Showing
8 changed files
with
96 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
/** | ||
* Created by: Andrey Polyakov ([email protected]) | ||
*/ | ||
|
||
import cn from 'classnames'; | ||
import React, {Suspense, lazy} from 'react'; | ||
|
||
import {stylesContainer} from './app.module.less'; | ||
import {stylesHeader, stylesImage} from './app.module.scss'; | ||
import {stylesHeader, stylesImage, stylesLink} from './app.module.scss'; | ||
|
||
const LazyStrawberryIcon = lazy(() => import('./strawberry')); | ||
export const App = (): React.ReactElement => ( | ||
|
@@ -13,5 +15,14 @@ export const App = (): React.ReactElement => ( | |
<Suspense fallback={'loading...'}> | ||
<LazyStrawberryIcon className={stylesImage} /> | ||
</Suspense> | ||
<div> | ||
<a | ||
className={cn(stylesLink)} | ||
href="https://github.com/glook/webpack-typescript-react" | ||
target="_blank" | ||
> | ||
@glook/webpack-typescript-react | ||
</a> | ||
</div> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,10 @@ | |
* Created by: Andrey Polyakov ([email protected]) | ||
* @see https://webpack.js.org/configuration/dev-server/ | ||
*/ | ||
import isWindows from 'is-windows'; | ||
|
||
import {defaultPort, devServerHost} from '../utils/env'; | ||
import {devServerProxyConfig} from './devServierProxy'; | ||
|
||
const defaultPort = 8080; | ||
|
||
const devServerHost = isWindows() ? '127.0.0.1' : '0.0.0.0'; | ||
|
||
export const devServerUrl = `http://${devServerHost}:${defaultPort}/`; | ||
|
||
export const devServerConfig = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters