How to use @webpack-blocks/core - 9 common examples

To help you get started, we’ve selected a few @webpack-blocks/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github andywer / webpack-blocks / packages / webpack2 / index.js View on Github external
function createVanillaConfig (configSetters) {
  assert.arrayOfFunc(configSetters, '1st param passed to createConfig.vanilla() must be an array of functions.')
  return core.createConfig({ webpack, webpackVersion }, [ createEmptyConfig ].concat(configSetters))
}
github andywer / webpack-blocks / packages / webpack / index.js View on Github external
function createConfig(configSetters) {
  return core.createConfig({ webpack, webpackVersion }, [createEmptyConfig].concat(configSetters))
}
github andywer / webpack-blocks / packages / webpack2 / index.js View on Github external
function createConfig (configSetters) {
  assert.arrayOfFunc(configSetters, '1st param passed to createConfig() must be an array of functions.')
  return core.createConfig({ webpack, webpackVersion }, [ createBaseConfig ].concat(configSetters))
}
github andywer / webpack-blocks / packages / webpack / index.js View on Github external
/**
 * 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
github andywer / webpack-blocks / packages / webpack2 / index.js View on Github external
/**
 * 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
github andywer / webpack-blocks / packages / webpack2 / index.js View on Github external
/**
 * 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
github andywer / webpack-blocks / packages / webpack / index.js View on Github external
/**
 * 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
github andywer / webpack-blocks / packages / webpack / index.js View on Github external
* 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
exports.setOutput = setOutput
github andywer / webpack-blocks / packages / webpack / index.js View on Github external
*
 * @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
exports.setOutput = setOutput
exports.sourceMaps = sourceMaps

@webpack-blocks/core

Functional approach to compose your webpack config.

MIT
Latest version published 5 years ago

Package Health Score

60 / 100
Full package analysis