Skip to content

Instantly share code, notes, and snippets.

@MartinTale
Last active February 1, 2016 13:06
Show Gist options
  • Save MartinTale/a5dc6ba80e2f98b9b229 to your computer and use it in GitHub Desktop.
Save MartinTale/a5dc6ba80e2f98b9b229 to your computer and use it in GitHub Desktop.
webpack.config.js
var webpack = require('webpack');
module.exports = {
debug: true,
entry: './src/index.js',
output: {
path: '.',
filename: "test-package.js"
},
module: {
preLoaders: [
{
test: /\.js$/,
loader: 'eslint-loader',
exclude: /node_modules/
}
],
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015']
}
}
]
},
eslint: {
configFile: '.eslintrc'
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment