Skip to content

Commit

Permalink
Added image loader to compile images
Browse files Browse the repository at this point in the history
  • Loading branch information
binoy14 committed May 15, 2017
1 parent 8452630 commit 2f4ab12
Show file tree
Hide file tree
Showing 9 changed files with 2,603 additions and 969 deletions.
Binary file added build/74fe6bf7ea92b9b8e2b0c7ba1245bea1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/9f283ab5a8bce7b0627fcdeb4c446c91.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/a7a644823e78b6a4ee315a74811b7c81.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,913 changes: 1,257 additions & 656 deletions build/bundle.js

Large diffs are not rendered by default.

Binary file added build/c7e8afe81209d879d50730c83e87056e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
199 changes: 96 additions & 103 deletions example/yarn.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
"eslint": "^3.17.1",
"eslint-plugin-react": "^6.10.0",
"eslint-plugin-react-native": "^2.3.1",
"file-loader": "^0.11.1",
"husky": "^0.13.3",
"image-webpack-loader": "^3.3.1",
"jest": "^19.0.2",
"lint-staged": "^3.4.0",
"prettier": "^1.1.0",
Expand Down
53 changes: 30 additions & 23 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,39 @@ module.exports = {
entry: './src/index',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'build')
path: path.resolve(__dirname, 'build'),
},
module: {
rules: [{
test: /\.js$/,
use: ['babel-loader'],
exclude: /node_modules/
}]
rules: [
{
test: /\.js$/,
use: ['babel-loader'],
exclude: /node_modules/,
},
{
test: /\.(jpe?g|png|gif)$/i,
use: [
'file-loader?hash=sha512&digest=hex&name=[hash].[ext]',
'image-webpack-loader',
],
},
],
},
externals: {
"react":"react",
"react-native":"react-native",
"react-native-vector-icons/MaterialIcons":"react-native-vector-icons/MaterialIcons",
"react-native-vector-icons/FontAwesome":"react-native-vector-icons/FontAwesome",
"react-native-vector-icons/Zocial":"react-native-vector-icons/Zocial",
"react-native-vector-icons/Octicons":"react-native-vector-icons/Octicons",
"react-native-vector-icons/MaterialCommunityIcons":"react-native-vector-icons/MaterialCommunityIcons",
"react-native-vector-icons/Foundation":"react-native-vector-icons/Foundation",
"react-native-vector-icons/SimpleLineIcons":"react-native-vector-icons/SimpleLineIcons",
"react-native-vector-icons/EvilIcons":"react-native-vector-icons/EvilIcons",
"react-native-vector-icons/Entypo":"react-native-vector-icons/Entypo",
"react-native-vector-icons/Ionicons":"react-native-vector-icons/Ionicons",
"react-native-side-menu":"react-native-side-menu",
"react-native-tab-navigator":"react-native-tab-navigator",
react: 'react',
'react-native': 'react-native',
'react-native-vector-icons/MaterialIcons': 'react-native-vector-icons/MaterialIcons',
'react-native-vector-icons/FontAwesome': 'react-native-vector-icons/FontAwesome',
'react-native-vector-icons/Zocial': 'react-native-vector-icons/Zocial',
'react-native-vector-icons/Octicons': 'react-native-vector-icons/Octicons',
'react-native-vector-icons/MaterialCommunityIcons': 'react-native-vector-icons/MaterialCommunityIcons',
'react-native-vector-icons/Foundation': 'react-native-vector-icons/Foundation',
'react-native-vector-icons/SimpleLineIcons': 'react-native-vector-icons/SimpleLineIcons',
'react-native-vector-icons/EvilIcons': 'react-native-vector-icons/EvilIcons',
'react-native-vector-icons/Entypo': 'react-native-vector-icons/Entypo',
'react-native-vector-icons/Ionicons': 'react-native-vector-icons/Ionicons',
'react-native-side-menu': 'react-native-side-menu',
'react-native-tab-navigator': 'react-native-tab-navigator',
},
plugins: [
new webpack.optimize.UglifyJsPlugin()
]
plugins: [new webpack.optimize.UglifyJsPlugin()],
};
Loading

0 comments on commit 2f4ab12

Please sign in to comment.