Skip to content

Commit

Permalink
chore: Disable CSS sourcemaps in prod (#5582)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal committed Nov 11, 2020
1 parent 85ac926 commit 5ae5017
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const targets = require('./config/targets');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');

const env = process.env.EMBER_ENV || 'development';
const isProd = env === 'production';

module.exports = function(defaults) {
const app = new EmberApp(defaults, {
Expand All @@ -14,7 +15,7 @@ module.exports = function(defaults) {
},
storeConfigInMeta : true,
sassOptions : {
sourceMapEmbed: true
sourceMapEmbed: !isProd
},
SemanticUI: {
source: {
Expand All @@ -28,7 +29,7 @@ module.exports = function(defaults) {
overrideBrowserslist : targets.browsers,
enabled : true,
cascade : false,
sourcemap : true
sourcemap : !isProd
},
minifyHTML: {
enabled : false,
Expand All @@ -40,10 +41,10 @@ module.exports = function(defaults) {
require.resolve('ember-auto-import/babel-plugin')
],
targets,
sourceMaps: 'inline'
sourceMaps: true
},
fingerprint: {
enabled : env === 'production',
enabled : isProd,
generateAssetMap : true,
exclude : [
'package.json',
Expand Down

1 comment on commit 5ae5017

@vercel
Copy link

@vercel vercel bot commented on 5ae5017 Nov 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.