You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WIP: buildProduction: Add support for --browsers switch.
Used to control autoprefixer and the splitCssIfIeLimitIsReached transform.
Removes support for --autoprefix (autoprefixer is now used if and only if --browsers is specified)
Currently requires autoprefixer to be available. Keeping an eye on segmentio/myth#94
Copy file name to clipboardexpand all lines: bin/buildProduction
+4-2
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,9 @@ var optimist = require('optimist'),
35
35
type: 'boolean',
36
36
default: false
37
37
})
38
-
.options('autoprefix',{
39
-
describe: 'Automatically prefix all css based on the rules supplied. See https://github.com/ai/autoprefixer#browsers',
38
+
.options('browsers',{
39
+
alias: 'b',
40
+
describe: 'Specify which browsers to support. Configures autoprefixer and controls which IE hacks to apply. Syntax: https://github.com/ai/autoprefixer#browsers',
40
41
type: 'string',
41
42
demand: false
42
43
})
@@ -291,6 +292,7 @@ new AssetGraph({root: rootUrl})
assetGraph.emit('warn',newError('autoprefixerTransform: Found '+cssAssets.length+' css asset(s), but no autoprefixer module is available. Please use npm to install autoprefixer in your project so the autoprefixer transform can require it.'));
20
-
return;
12
+
// See https://github.com/ai/autoprefixer#browsers
assetGraph.emit('warn',newError('autoprefixer transform: Found '+cssAssets.length+' css asset(s), but no autoprefixer module is available. Please use npm to install autoprefixer in your project so the autoprefixer transform can require it.'));
.mergeIdenticalAssets({isLoaded: true,isInline: false,type: ['JavaScript','Css']})// The bundling might produce several identical files, especially the 'oneBundlePerIncludingAsset' strategy.
@@ -106,7 +169,14 @@ module.exports = function (options) {
0 commit comments