Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* Webpack base config block.
*
* @see https://webpack.github.io/docs/configuration.html
*/
const assert = require('assert-plus')
const common = require('@webpack-blocks/webpack-common')
const core = require('@webpack-blocks/core')
const webpack = require('webpack')
const webpackVersion = common.parseVersion(require('webpack/package.json').version)
exports.env = core.env
exports.group = core.group
exports.webpack = webpack
exports.createConfig = createConfig
exports.createConfig.vanilla = createVanillaConfig
exports.addPlugins = common.addPlugins
exports.customConfig = common.customConfig
exports.defineConstants = common.defineConstants
exports.entryPoint = common.entryPoint
exports.performance = common.performance
exports.resolveAliases = common.resolveAliases
exports.setContext = common.setContext
exports.setDevTool = common.setDevTool
exports.setOutput = common.setOutput
exports.sourceMaps = common.sourceMaps
/**
* Webpack base config block.
*
* @see https://webpack.github.io/docs/configuration.html
*/
const core = require('@webpack-blocks/core')
const webpack = require('webpack')
const webpackMerge = require('webpack-merge')
const path = require('path')
const parseVersion = require('./lib/parseVersion')
const webpackVersion = parseVersion(require('webpack/package.json').version)
exports.env = core.env
exports.group = core.group
exports.match = core.match
exports.when = core.when
exports.createConfig = createConfig
exports.setMode = setMode
exports.addPlugins = addPlugins
exports.customConfig = customConfig
exports.defineConstants = require('./lib/defineConstants')
exports.setEnv = require('./lib/setEnv')
exports.entryPoint = entryPoint
exports.performance = performance
exports.optimization = optimization
exports.resolve = resolve
exports.setContext = setContext
exports.setDevTool = setDevTool