File tree 4 files changed +5
-2
lines changed 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
"scripts" : {
5
5
"dev" : " poi" ,
6
6
"build" : " poi build" ,
7
+ "build:analyze" : " poi build --bundle-report" ,
7
8
"serve" : " serve dist -l 8000" ,
8
9
"lint" : " eslint --ext .js,.jsx --ignore-path .gitignore ." ,
9
10
"lint:fix" : " eslint --fix --ext .js,.jsx --ignore-path .gitignore ."
19
20
"react-dom" : " ^16.4.0"
20
21
},
21
22
"devDependencies" : {
23
+ "@poi/plugin-bundle-report" : " ^10.0.1" ,
22
24
"@poi/plugin-eslint" : " ^10.0.2" ,<% if (pwa) { %>
23
25
"@poi/plugin-offline" : " ^10.0.1" ,<% } %>
24
26
"babel-eslint" : " ^8.2.3" ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module.exports = {
6
6
env : true ,
7
7
entry : 'src/index.js' ,
8
8
plugins : [
9
+ require ( '@poi/plugin-bundle-report' ) ( ) ,
9
10
require ( '@poi/plugin-eslint' ) ( ) , < % if ( pwa ) { % >
10
11
require ( '@poi/plugin-offline' ) ( ) , < % } % >
11
12
],
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const makeRender = () => ({ router }) => {
12
12
const router = setupRouter ( ) ;
13
13
router . respond ( makeRender ( ) ) ;
14
14
< % } else { % >
15
+
15
16
const render = Component => {
16
17
ReactDOM . render ( < Component /> , document . getElementById ( 'app' ) ) ;
17
18
} ;
Original file line number Diff line number Diff line change 1
- import './main.css' ;
2
- < % if ( tailwindcss ) { % >
1
+ import './main.css' ; < % if ( tailwindcss ) { % >
3
2
import './tailwind.scss' ;
4
3
< % } % >
You can’t perform that action at this time.
0 commit comments