File tree Expand file tree Collapse file tree 5 files changed +31
-29
lines changed Expand file tree Collapse file tree 5 files changed +31
-29
lines changed Original file line number Diff line number Diff line change 1818 "license" : " MIT" ,
1919 "dependencies" : {
2020 "babel-loader" : " ^7.1.4" ,
21- "haul" : " ^ 1.0.0-rc.4 " ,
21+ "haul" : " 1.0.0-rc.7 " ,
2222 "webpack-visualizer-plugin" : " ^0.1.11"
2323 }
2424}
Original file line number Diff line number Diff line change 1+ import Visualizer from 'webpack-visualizer-plugin' ;
2+ import originalConfig from '../../../haul.config.js' ;
3+
4+ export default {
5+ webpack : env => {
6+ const config = originalConfig . webpack ( env ) ;
7+ config . plugins . push ( new Visualizer ( ) ) ;
8+ return config ;
9+ }
10+ } ;
Original file line number Diff line number Diff line change 1+ import Visualizer from 'webpack-visualizer-plugin' ;
2+ import { createWebpackConfig } from "haul" ;
3+ import { getEntryPoint } from './get-entry-point' ;
4+
5+ export default {
6+ webpack : env => {
7+ const config = createWebpackConfig ( {
8+ entry : getEntryPoint ( ) ,
9+ } ) ( env ) ;
10+
11+ config . plugins . push ( new Visualizer ( ) ) ;
12+
13+ return config ;
14+ }
15+ } ;
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33DIR=./node_modules/react-native-bundle-visualizer/src
4- CONFIG_FILE=$DIR /webpack. haul.js
4+ CONFIG_FILE=$DIR /haul.config .js
55if [ -f ./webpack.haul.js ]; then
6- CONFIG_FILE2=$DIR /webpack.haul.extend.js
6+ CONFIG_FILE=$DIR /webpack.haul.extend.js
7+ fi
8+ if [ -f ./haul.config.js ]; then
9+ CONFIG_FILE=$DIR /haul.config.extend.js
710fi
811
912./node_modules/.bin/haul bundle --config $CONFIG_FILE --platform ios
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments