File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ const optionPresets = {
1717 hmr : true ,
1818 sw : false ,
1919 publicPath : '/' ,
20- baseHref : '/' ,
2120 } ,
2221 production : {
2322 mode : 'production' ,
@@ -30,7 +29,6 @@ const optionPresets = {
3029 hmr : false ,
3130 sw : true ,
3231 publicPath : '/' ,
33- baseHref : '/' ,
3432 } ,
3533 test : {
3634 mode : 'test' ,
@@ -43,7 +41,6 @@ const optionPresets = {
4341 hmr : false ,
4442 sw : false ,
4543 publicPath : '/' ,
46- baseHref : '/' ,
4744 } ,
4845}
4946
@@ -53,21 +50,18 @@ const options = {
5350 'development-file' : {
5451 ...optionPresets . development ,
5552 publicPath : '' ,
56- baseHref : './' ,
5753 } ,
5854 // Production options
5955 'production-web' : optionPresets . production ,
6056 'production-file' : {
6157 ...optionPresets . production ,
6258 publicPath : '' ,
63- baseHref : './' ,
6459 } ,
6560 // Test options
6661 'test-web' : optionPresets . test ,
6762 'test-file' : {
6863 ...optionPresets . test ,
6964 publicPath : '' ,
70- baseHref : './' ,
7165 } ,
7266}
7367
Original file line number Diff line number Diff line change 11const webpack = require ( 'webpack' )
22const { CleanWebpackPlugin } = require ( 'clean-webpack-plugin' )
3- const { BaseHrefWebpackPlugin } = require ( 'base-href-webpack-plugin' )
43const HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
54const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
65const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' )
@@ -67,10 +66,6 @@ const createPlugins = (options) => {
6766 } )
6867 )
6968
70- if ( options . baseHref ) {
71- plugins . push ( new BaseHrefWebpackPlugin ( { baseHref : options . baseHref } ) )
72- }
73-
7469 plugins . push ( new webpack . ids . HashedModuleIdsPlugin ( ) )
7570
7671 plugins . push (
Original file line number Diff line number Diff line change @@ -4,10 +4,8 @@ const HtmlWebpackPlugin = require('html-webpack-plugin')
44const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
55const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' )
66const { BundleAnalyzerPlugin } = require ( 'webpack-bundle-analyzer' )
7- const { BaseHrefWebpackPlugin } = require ( 'base-href-webpack-plugin' )
87const CompressionPlugin = require ( 'compression-webpack-plugin' )
98const WorkboxPlugin = require ( 'workbox-webpack-plugin' )
10- const RobotstxtPlugin = require ( 'robotstxt-webpack-plugin' )
119const path = require ( 'path' )
1210
1311const rootDir = path . resolve ( __dirname , './../' )
@@ -58,10 +56,6 @@ const createPlugins = (options) => {
5856 } )
5957 )
6058
61- if ( options . baseHref ) {
62- plugins . push ( new BaseHrefWebpackPlugin ( { baseHref : options . baseHref } ) )
63- }
64-
6559 plugins . push ( new webpack . ids . HashedModuleIdsPlugin ( ) )
6660
6761 plugins . push (
@@ -95,8 +89,6 @@ const createPlugins = (options) => {
9589 } )
9690 )
9791
98- plugins . push ( new RobotstxtPlugin ( ) )
99-
10092 if ( options . sw === true ) {
10193 plugins . push (
10294 new WorkboxPlugin . GenerateSW ( {
Original file line number Diff line number Diff line change 11const webpack = require ( 'webpack' )
22const { CleanWebpackPlugin } = require ( 'clean-webpack-plugin' )
3- const { BaseHrefWebpackPlugin } = require ( 'base-href-webpack-plugin' )
43const HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
54const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
65const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' )
@@ -46,10 +45,6 @@ const createPlugins = (options) => {
4645 } )
4746 )
4847
49- if ( options . baseHref ) {
50- plugins . push ( new BaseHrefWebpackPlugin ( { baseHref : options . baseHref } ) )
51- }
52-
5348 plugins . push ( new webpack . ids . HashedModuleIdsPlugin ( ) )
5449
5550 plugins . push (
Original file line number Diff line number Diff line change 11# docker-react-typescript-starter
22
3+ ![ Lint] ( https://github.com/bevenio/docker-react/actions/workflows/nodejs_lint.yml/badge.svg?event=push )
4+ ![ Test] ( https://github.com/bevenio/docker-react/actions/workflows/nodejs_test.yml/badge.svg?event=push )
5+ ![ Build] ( https://github.com/bevenio/docker-react/actions/workflows/nodejs_build.yml/badge.svg?event=push )
6+
37## General
48
59### About
You can’t perform that action at this time.
0 commit comments