Skip to content

Instantly share code, notes, and snippets.

@jprivillaso
Created October 30, 2017 13:30
Show Gist options
  • Save jprivillaso/914416f99fa97523d63bc5ff8068bb87 to your computer and use it in GitHub Desktop.
Save jprivillaso/914416f99fa97523d63bc5ff8068bb87 to your computer and use it in GitHub Desktop.
'use strict';
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: [
path.join(__dirname, 'src/index.js'),
],
devtool: 'eval-source-map',
output: {
path: path.join(__dirname, '/dist/'),
filename: 'bundle.min.js',
publicPath: '/',
chunkFilename: 'chunk-[id]-[name].js',
pathinfo: true
},
resolve: {
modules: [
'lib',
'node_modules'
],
extensions: ['.js', '.jsx', '.json', '.scss'],
},
plugins: [
// ... more plugins
new webpack.DllReferencePlugin({
context: '.',
manifest: require('./dist/vendor-manifest.json')
})
],
module: {
loaders: [
// ... loaders
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment