@gdjiami/cli
Version:
CLI for build front end project.
22 lines (21 loc) • 801 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var safePostCssParser = require('postcss-safe-parser');
function optimizeCSSAssetsPlugin(sourceMapEnabled) {
return {
cssProcessorOptions: {
parser: safePostCssParser,
map: sourceMapEnabled
? {
// `inline: false` forces the sourcemap to be output into a
// separate file
inline: false,
// `annotation: true` appends the sourceMappingURL to the end of
// the css file, helping the browser find the sourcemap
annotation: true,
}
: false,
},
};
}
exports.default = optimizeCSSAssetsPlugin;