The source map is unnecessary in the production.

This commit is contained in:
lion-man44 2017-08-18 13:01:03 +09:00
parent b8917d84ba
commit edd68171b5
5 changed files with 341 additions and 304 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
{"version":3,"file":"choices.min.js","sources":[],"mappings":";;;","sourceRoot":""}

View file

@ -1,12 +1,12 @@
var path = require('path');
var pkg = require('./package.json');
var webpack = require('webpack');
var wrapperPlugin = require('wrapper-webpack-plugin');
var banner = `/*! ${ pkg.name } v${ pkg.version } | (c) ${ new Date().getFullYear() } ${ pkg.author } | ${ pkg.homepage } */ \n`;
var minimize = process.argv.indexOf('--minimize') !== -1;
const path = require('path');
const pkg = require('./package.json');
const webpack = require('webpack');
const wrapperPlugin = require('wrapper-webpack-plugin');
const banner = `/*! ${ pkg.name } v${ pkg.version } | (c) ${ new Date().getFullYear() } ${ pkg.author } | ${ pkg.homepage } */ \n`;
const minimize = process.argv.includes('--minimize');
var config = {
devtool: 'cheap-module-source-map',
const config = {
devtool: minimize ? false : 'cheap-module-source-map',
entry: [
'./assets/scripts/src/choices'
],