standardify

pull/19/head
unknown 2018-11-07 15:05:50 -05:00
parent 7bfaa28cbc
commit 7972729f9e
2 changed files with 11 additions and 13 deletions

View File

@ -13,11 +13,9 @@
* https://sailsjs.com/anatomy/Gruntfile.js * https://sailsjs.com/anatomy/Gruntfile.js
*/ */
module.exports = function (grunt) { module.exports = function (grunt) {
var loadGruntTasks = require('sails-hook-grunt/accessible/load-grunt-tasks')
var loadGruntTasks = require('sails-hook-grunt/accessible/load-grunt-tasks');
// Load Grunt task configurations (from `tasks/config/`) and Grunt // Load Grunt task configurations (from `tasks/config/`) and Grunt
// task registrations (from `tasks/register/`). // task registrations (from `tasks/register/`).
loadGruntTasks(__dirname, grunt); loadGruntTasks(__dirname, grunt)
}
};

View File

@ -1,10 +1,10 @@
const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const webpack = require('webpack'); const webpack = require('webpack')
const path = require('path'); const path = require('path')
module.exports = (env, argv) => { module.exports = (env, argv) => {
const mode = argv.mode || 'development'; const mode = argv.mode || 'development'
return { return {
mode: mode || 'development', mode: mode || 'development',
@ -45,5 +45,5 @@ module.exports = (env, argv) => {
'process.env.NODE_ENV': JSON.stringify(mode) 'process.env.NODE_ENV': JSON.stringify(mode)
}) })
] ]
}; }
}; }