standardify
parent
7bfaa28cbc
commit
7972729f9e
|
@ -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)
|
||||||
|
}
|
||||||
};
|
|
||||||
|
|
|
@ -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)
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
|
|
Loading…
Reference in New Issue