Skip to content

Instantly share code, notes, and snippets.

@artyomtrityak
Created July 6, 2015 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artyomtrityak/55c352df5b254b33e3bc to your computer and use it in GitHub Desktop.
Save artyomtrityak/55c352df5b254b33e3bc to your computer and use it in GitHub Desktop.
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