File tree 3 files changed +2
-4
lines changed
3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " webpack-typescript-react" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " Webpack 5 boilerplate with support of most common loaders and modules" ,
5
5
"keywords" : [
6
6
" react" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {arrayFilterEmpty} from './utils/helpers';
13
13
14
14
export default {
15
15
context : __dirname ,
16
- target : [ 'web' , 'es5' ] ,
16
+ target : isDevServer ? 'web' : [ 'web' , 'es5' ] ,
17
17
mode : isProd ? 'production' : 'development' ,
18
18
entry,
19
19
output : {
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Created by: Andrey Polyakov (andrey@polyakov.im)
3
3
*/
4
- import path from 'path' ;
5
-
6
4
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin' ;
7
5
8
6
import { devServerConfig } from './config' ;
You can’t perform that action at this time.
0 commit comments