webpack: Declare constants as such
This commit is contained in:
parent
9fd1cf7f3f
commit
8874e6a233
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ const CompressionPlugin = require("compression-webpack-plugin");
|
||||||
const nodedir = path.resolve((process.env.SRCDIR || __dirname), "node_modules");
|
const nodedir = path.resolve((process.env.SRCDIR || __dirname), "node_modules");
|
||||||
|
|
||||||
/* A standard nodejs and webpack pattern */
|
/* A standard nodejs and webpack pattern */
|
||||||
var production = process.env.NODE_ENV === 'production';
|
const production = process.env.NODE_ENV === 'production';
|
||||||
|
|
||||||
// Non-JS files which are copied verbatim to dist/
|
// Non-JS files which are copied verbatim to dist/
|
||||||
const copy_files = [
|
const copy_files = [
|
||||||
|
|
@ -30,7 +30,7 @@ if (production) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* keep this in sync with cockpit.git */
|
/* keep this in sync with cockpit.git */
|
||||||
var babel_loader = {
|
const babel_loader = {
|
||||||
loader: "babel-loader",
|
loader: "babel-loader",
|
||||||
options: {
|
options: {
|
||||||
presets: [
|
presets: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue