forked from akveo/react-native-ui-kitten
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
46 lines (40 loc) · 740 Bytes
/
webpack.config.js
File metadata and controls
46 lines (40 loc) · 740 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
var path = require('path'),
webpack = require('webpack');
module.exports = {
entry: path.resolve(__dirname) + '/examples/index.js',
output: {
path: path.resolve(__dirname) + '/dist',
publicPath: '/dist',
filename: 'react-ui-kitten.min.js'
},
module: {
loaders: [
{
loader: 'babel-loader',
exclude: /(node_modules)/,
test: /\.js$/,
query: {
presets: ['env', 'stage-0', 'react']
}
},
{
loader: 'file-loader',
test: /\.(png|jpg|gif)$/
}
]
},
/* Just in case */
resolve: {
alias: {
"react-native": "react-native-web"
}
},
/* Uglify JS */
plugins: [
new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/,
minimize: true,
compress: true
})
]
};