How to use the webpack-merge.bind function in webpack-merge

To help you get started, we’ve selected a few webpack-merge 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 catamphetamine / react-pages / webpack.config.js View on Github external
include: config.paths.demo
			},
			{
				test: /\.jpg$/,
				loader: 'file',
				include: config.paths.demo
			},
			{
				test: /\.json$/,
				loader: 'json'
			}
		]
	}
})

var merge_build = merge.bind(null, 
{
	devtool: 'source-map',
	output: 
	{
		path: config.paths.dist,
		libraryTarget: 'umd',
		library: config.library
	},
	entry: config.paths.src,
	externals: 
	{
		//// if you are not testing, just react will do
		//react: 'react',
		// 'react/addons': 'react/addons'
	},
	module:
github catamphetamine / react-styling / webpack.config.js View on Github external
include: config.paths.demo
			},
			{
				test: /\.jpg$/,
				loader: 'file',
				include: config.paths.demo
			},
			{
				test: /\.json$/,
				loader: 'json'
			}
		]
	}
})

var merge_build = merge.bind(null, 
{
	devtool: 'source-map',
	output: 
	{
		path: config.paths.dist,
		libraryTarget: 'umd',
		library: config.library
	},
	entry: config.paths.src,
	externals: 
	{
		//// if you are not testing, just react will do
		//react: 'react',
		// 'react/addons': 'react/addons'
	},
	module:
github catamphetamine / webpack-isomorphic-tools / webpack.config.js View on Github external
include: config.paths.demo
			},
			{
				test: /\.jpg$/,
				loader: 'file',
				include: config.paths.demo
			},
			{
				test: /\.json$/,
				loader: 'json'
			}
		]
	}
})

var merge_build = merge.bind(null, 
{
	devtool: 'source-map',
	output: 
	{
		path: config.paths.dist,
		libraryTarget: 'umd',
		library: config.library
	},
	entry: config.paths.src,
	externals: 
	{
		//// if you are not testing, just react will do
		//react: 'react',
		// 'react/addons': 'react/addons'
	},
	module:
github catamphetamine / react-pages / webpack.config.js View on Github external
var babel = 'babel'

var config = 
{
	paths: 
	{
		dist: path.join(Root_folder, 'build'),
		src: path.join(Root_folder, 'source'),
		demo: path.join(Root_folder, Demo_folder),
		demoIndex: path.join(Root_folder, Demo_folder, '/index')
	},
	filename: 'react-isomorphic-render',
	library: 'react-isomorphic-render'
}

var merge_demo = merge.bind(null, 
{
	resolve: 
	{
		extensions: ['', '.js', '.jsx', '.md', '.css', '.png', '.jpg']
	},
	module: 
	{
		loaders: 
		[
			{
				test: /\.css$/,
				loaders: ['style', 'css']
			},
			{
				test: /\.md$/,
				loaders: ['html', 'highlight', 'markdown']
github taofed / react-web / webpack.config.js View on Github external
var HtmlPlugin = require('webpack-html-plugin');
var merge = require('webpack-merge');
var HasteResolverPlugin = require('haste-resolver-webpack-plugin');

var NODE_ENV = process.env.NODE_ENV;
var ROOT_PATH = path.resolve(__dirname);
var DEMO_DIR = 'Examples';
var config = {
  paths: {
    src: path.join(ROOT_PATH, 'Libraries'),
    demo: path.join(ROOT_PATH, DEMO_DIR),
    demoIndex: path.join(ROOT_PATH, DEMO_DIR, '/UIExplorer/UIExplorerApp.web'),
  }
};

var mergeCommon = merge.bind(null, {
  resolve: {
    alias: {
      'react-native': 'ReactWeb',
      'ReactART': 'react-art'
    },
    extensions: ['', '.js', '.jsx', '.md', '.css', '.png', '.jpg'],
  },
  module: {
    loaders: [{
      test: /\.png$/,
      loader: 'url?limit=100000&mimetype=image/png',
      include: config.paths.demo,
    }, {
      test: /\.jpg$/,
      loader: 'file',
      include: config.paths.demo,
github catamphetamine / webpack-isomorphic-tools / webpack.config.js View on Github external
var babel = 'babel'

var config = 
{
	paths: 
	{
		dist: path.join(Root_folder, 'build'),
		src: path.join(Root_folder, 'source'),
		demo: path.join(Root_folder, Demo_folder),
		demoIndex: path.join(Root_folder, Demo_folder, '/index')
	},
	filename: 'webpack-isomorphic-tools',
	library: 'webpack-isomorphic-tools'
}

var merge_demo = merge.bind(null, 
{
	resolve: 
	{
		extensions: ['', '.js', '.jsx', '.md', '.css', '.png', '.jpg']
	},
	module: 
	{
		loaders: 
		[
			{
				test: /\.css$/,
				loaders: ['style', 'css']
			},
			{
				test: /\.md$/,
				loaders: ['html', 'highlight', 'markdown']
github catamphetamine / react-styling / webpack.config.js View on Github external
var babel = 'babel'

var config = 
{
	paths: 
	{
		dist: path.join(Root_folder, 'build'),
		src: path.join(Root_folder, 'source'),
		demo: path.join(Root_folder, Demo_folder),
		demoIndex: path.join(Root_folder, Demo_folder, '/index')
	},
	filename: 'react-styling',
	library: 'react-styling'
}

var merge_demo = merge.bind(null, 
{
	resolve: 
	{
		extensions: ['', '.js', '.jsx', '.md', '.css', '.png', '.jpg']
	},
	module: 
	{
		loaders: 
		[
			{
				test: /\.css$/,
				loaders: ['style', 'css']
			},
			{
				test: /\.md$/,
				loaders: ['html', 'highlight', 'markdown']