Created
December 5, 2016 03:43
-
-
Save hyperh/df786f6757196a6cf1d317303b51251c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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