Created
July 6, 2015 09:06
-
-
Save artyomtrityak/55c352df5b254b33e3bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'), | |
path = require('path'), | |
AnybarWebpackPlugin = require('anybar-webpack'); | |
module.exports = { | |
watch: true, | |
entry: path.join(__dirname, '/app/index.jsx'), | |
module: { | |
preLoaders: [ | |
{ | |
test: /\.jsx$|\.js$/, | |
loaders: ['eslint'], | |
exclude: /node_modules/ | |
} | |
], | |
loaders: [ | |
{ | |
test: /\.(jsx|js)$/, | |
exclude: /node_modules/, | |
loaders: ['babel-loader?optional=runtime'] | |
} | |
] | |
}, | |
output: { | |
path: path.join(__dirname, '/'), | |
filename: 'index.ios.js', | |
libraryTarget: 'commonjs' | |
}, | |
externals: [require('./ignore-modules')], | |
eslint: { | |
configFile: '.eslintrc', | |
emitError: true | |
}, | |
resolve: { | |
root: path.resolve('./app'), | |
extensions: ['', '.js', '.jsx'], | |
modulesDirectories: ['node_modules'] | |
}, | |
plugins: [ | |
new webpack.NoErrorsPlugin(), | |
new AnybarWebpackPlugin(), | |
new webpack.IgnorePlugin(new RegExp("^(FontAwesome)$")) | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment