From b83b38e2b956d717c16198dc08d2d60468c20c7d Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 9 Jun 2018 23:49:46 +0200 Subject: [PATCH] Replace var by const. --- config/webpack.common.js | 8 ++++---- config/webpack.dev.js | 8 ++++---- config/webpack.prod.js | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/config/webpack.common.js b/config/webpack.common.js index 972fc49..b111f6c 100644 --- a/config/webpack.common.js +++ b/config/webpack.common.js @@ -1,9 +1,9 @@ // vim: set tw=80 ts=2 sw=2 sts=2: -var webpack = require('webpack'); -var HtmlWebpackPlugin = require('html-webpack-plugin'); -var ExtractTextPlugin = require('extract-text-webpack-plugin'); -var helpers = require('./helpers'); +const webpack = require('webpack'); +const HtmlWebpackPlugin = require('html-webpack-plugin'); +const ExtractTextPlugin = require('extract-text-webpack-plugin'); +const helpers = require('./helpers'); module.exports = { entry: { diff --git a/config/webpack.dev.js b/config/webpack.dev.js index c723c66..584c41e 100644 --- a/config/webpack.dev.js +++ b/config/webpack.dev.js @@ -1,9 +1,9 @@ // vim: set tw=80 ts=2 sw=2 sts=2: -var webpackMerge = require('webpack-merge'); -var ExtractTextPlugin = require('extract-text-webpack-plugin'); -var commonConfig = require('./webpack.common.js'); -var helpers = require('./helpers'); +const webpackMerge = require('webpack-merge'); +const ExtractTextPlugin = require('extract-text-webpack-plugin'); +const commonConfig = require('./webpack.common.js'); +const helpers = require('./helpers'); module.exports = webpackMerge(commonConfig, { devtool: 'cheap-module-eval-source-map', diff --git a/config/webpack.prod.js b/config/webpack.prod.js index d5a0395..c13f28d 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -1,9 +1,9 @@ /* jshint esversion: 6 */ -var webpack = require('webpack'); -var webpackMerge = require('webpack-merge'); -var ExtractTextPlugin = require('extract-text-webpack-plugin'); -var commonConfig = require('./webpack.common.js'); -var helpers = require('./helpers'); +const webpack = require('webpack'); +const webpackMerge = require('webpack-merge'); +const ExtractTextPlugin = require('extract-text-webpack-plugin'); +const commonConfig = require('./webpack.common.js'); +const helpers = require('./helpers'); const ENV = process.env.NODE_ENV = process.env.ENV = 'production';