Skip to content

Instantly share code, notes, and snippets.

@hyperh
Created December 5, 2016 03:43
Show Gist options
  • Select an option

  • Save hyperh/df786f6757196a6cf1d317303b51251c to your computer and use it in GitHub Desktop.

Select an option

Save hyperh/df786f6757196a6cf1d317303b51251c to your computer and use it in GitHub Desktop.
const { publicPath, assetsPath, commonLoaders } = require('./common.config');
const webpack = require('webpack');
const path = require('path');
module.exports = {
devtool: 'eval',
name: 'client',
context: path.join(__dirname, '..', 'app'),
entry: './client.js',
output: {
path: assetsPath,
publicPath,
filename: 'bundle.js',
},
module: {
loaders: commonLoaders.concat([
{
test: /\.css$/,
loaders: [
'style',
'css?module&localIdentName=[name]__[local]___[hash:base64:5]',
],
},
]),
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment