-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
29 lines (27 loc) · 841 Bytes
/
webpack.config.js
File metadata and controls
29 lines (27 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// source of this file: https://github.com/roman01la/react-native-babel/blob/9eafa8071983c6a97390547066b075b61fde8b68/webpack.config.js
var webpack = require('webpack')
var path = require('path')
var AnybarWebpackPlugin = require('anybar-webpack')
module.exports = {
entry: path.join(__dirname, '/src/app.jsx'),
module: {
loaders: [
{ test: /\.(jsx|es6)$/, exclude: /node_modules/, loaders: ['babel-loader?optional=runtime'] },
{ test: /\.json$/, loaders: ['json'] }
]
},
output: {
path: path.join(__dirname, '/'),
filename: 'index.ios.js',
libraryTarget: 'commonjs'
},
resolve: {
modulesDirectories: ['web_modules', 'node_modules'],
extensions: ['', '.js', '.jsx', '.es6']
},
plugins: [
new webpack.NoErrorsPlugin(),
new AnybarWebpackPlugin()
],
devTool: 'source-map'
}