This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webpackMerge = require("webpack-merge"); | |
const applyPresets = (env = { presets: [] }) => { | |
const presets = env.presets || []; | |
/** @type {string[]} */ | |
const mergedPresets = [].concat(...[presets]); | |
const mergedConfigs = mergedPresets.map(presetName => require(`./presets/webpack.${presetName}`)(env)); | |
return webpackMerge({}, ...mergedConfigs); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git status | |
5 commits pending | |
$ git reset --soft HEAD~5 # where 5 is the number of commits you saw in the `git status` | |
$ git stash |
OlderNewer