我正在使用 gulp 并且我想使用 babeljs 任务保存我的 .js 文件的格式,我该如何执行此操作?
例如我有:
var
PC1 = 'Customer',
PC2 = 'Purchase Frequency',
PC3 = 'Purchase Value',
PC4 = 'Most Viewed Category',
PC5 = 'Brand',
PC6 = 'Reduced Price',
PC7 = 'Colour',
PC8 = 'Material',
PC9 = 'Gender',
PC10 = 'Size',
PC11 = 'Price';
它将它表示为:
var PC1 = "Customer",
PC2 = "Purchase Frequency",
PC3 = "Purchase Value",
PC4 = "Most Viewed Category",
PC5 = "Brand",
PC6 = "Reduced Price",
PC7 = "Colour",
PC8 = "Material",
PC9 = "Gender",
PC10 = "Size",
PC11 = "Price";
如何避免这种情况?