standardify
parent
7bfaa28cbc
commit
7972729f9e
10
Gruntfile.js
10
Gruntfile.js
|
@ -12,12 +12,10 @@
|
|||
* For more information see:
|
||||
* https://sailsjs.com/anatomy/Gruntfile.js
|
||||
*/
|
||||
module.exports = function(grunt) {
|
||||
|
||||
var loadGruntTasks = require('sails-hook-grunt/accessible/load-grunt-tasks');
|
||||
module.exports = function (grunt) {
|
||||
var loadGruntTasks = require('sails-hook-grunt/accessible/load-grunt-tasks')
|
||||
|
||||
// Load Grunt task configurations (from `tasks/config/`) and Grunt
|
||||
// task registrations (from `tasks/register/`).
|
||||
loadGruntTasks(__dirname, grunt);
|
||||
|
||||
};
|
||||
loadGruntTasks(__dirname, grunt)
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const webpack = require('webpack');
|
||||
const path = require('path');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
||||
const webpack = require('webpack')
|
||||
const path = require('path')
|
||||
|
||||
module.exports = (env, argv) => {
|
||||
const mode = argv.mode || 'development';
|
||||
const mode = argv.mode || 'development'
|
||||
|
||||
return {
|
||||
mode: mode || 'development',
|
||||
|
@ -45,5 +45,5 @@ module.exports = (env, argv) => {
|
|||
'process.env.NODE_ENV': JSON.stringify(mode)
|
||||
})
|
||||
]
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue