From f8a08a4507e674be22c195c949b0dbfdc66f3657 Mon Sep 17 00:00:00 2001 From: Cheton Wu Date: Fri, 9 Feb 2018 16:26:46 +0800 Subject: [PATCH] Update webpack.config.js --- webpack.config.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 6e4b4fe..9f675b9 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,18 +1,18 @@ -var pkg = require('./package.json'); -var path = require('path'); -var webpack = require('webpack'); -var ExtractTextPlugin = require('extract-text-webpack-plugin'); -var findImports = require('find-imports'); -var stylusLoader = require('stylus-loader'); -var nib = require('nib'); -var publicname = pkg.name.replace(/^@\w+\//, ''); // Strip out "@trendmicro/" from package name -var banner = [ +const pkg = require('./package.json'); +const path = require('path'); +const webpack = require('webpack'); +const ExtractTextPlugin = require('extract-text-webpack-plugin'); +const findImports = require('find-imports'); +const stylusLoader = require('stylus-loader'); +const nib = require('nib'); +const publicname = pkg.name.replace(/^@\w+\//, ''); // Strip out "@trendmicro/" from package name +const banner = [ publicname + ' v' + pkg.version, '(c) ' + new Date().getFullYear() + ' Trend Micro Inc.', pkg.license, pkg.homepage ].join(' | '); -var localClassPrefix = publicname.replace(/^react-/, ''); // Strip out "react-" from publicname +const localClassPrefix = publicname.replace(/^react-/, ''); // Strip out "react-" from publicname module.exports = { devtool: 'source-map',