Skip to content

Commit

Permalink
No source map for production
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanfang committed Nov 9, 2016
1 parent 38714af commit ebd3a20
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ const cssLoader = Config.IS_DEVELOPMENT ? {
],
} : {
test: /\.css$/,
loader: ExtractTextPlugin.extract('style', 'css?sourceMap&modules&importLoaders=1&localIdentName=[path][name]__[local]__[hash:base64:5]!resolve-url!postcss?sourceMap=inline'),
loader: ExtractTextPlugin.extract(
'style',
'css?modules&importLoaders=1&localIdentName=[path][name]__[local]__[hash:base64:5]!resolve-url!postcss',
),
// This doesn't work for now: https://github.com/webpack/extract-text-webpack-plugin/issues/173
// loader: ExtractTextPlugin.extract({
// notExtractLoader: 'style',
Expand All @@ -105,8 +108,7 @@ const cssLoader = Config.IS_DEVELOPMENT ? {
};

module.exports = {
devtool: 'source-map',
// devtool: Config.IS_DEVELOPMENT ? 'eval-source-map' : null,
devtool: Config.IS_DEVELOPMENT ? 'source-map' : null,
entry,
output: {
path: path.join(__dirname, 'dist'),
Expand Down

0 comments on commit ebd3a20

Please sign in to comment.