Skip to content

Instantly share code, notes, and snippets.

@fakiolinho
Last active March 8, 2018 09:49
Show Gist options
  • Save fakiolinho/8c8bda667b58196b4edfb149d89bc40f to your computer and use it in GitHub Desktop.
Save fakiolinho/8c8bda667b58196b4edfb149d89bc40f to your computer and use it in GitHub Desktop.
const { resolve } = require('path');
module.exports = {
context: resolve(__dirname, '../'),
entry: ['babel-polyfill', './app/js/main.js'],
resolve: {
extensions: [
'*', '.js', '.jsx',
],
modules: [
resolve(__dirname, '../app'),
'node_modules',
],
},
output: {
filename: '[name]-[hash:6].js',
path: resolve(__dirname, '../build'),
publicPath: '/',
},
module: {
rules: [
...
],
},
plugins: [
...
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment