mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
correct deps loading and shrinkwrap
This commit is contained in:
797
npm-shrinkwrap.json
generated
797
npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
6
test/client/.eslintrc
Normal file
6
test/client/.eslintrc
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"env": {
|
||||
"node": true,
|
||||
"browser": true,
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,6 @@ const merge = require('webpack-merge');
|
||||
const baseWebpackConfig = require('./webpack.base.conf');
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const CompressionWebpackPlugin = require('compression-webpack-plugin');
|
||||
const env = process.env.NODE_ENV === 'testing' ?
|
||||
require('./config/test.env') :
|
||||
config.build.env;
|
||||
@@ -85,6 +84,8 @@ const webpackConfig = merge(baseWebpackConfig, {
|
||||
});
|
||||
|
||||
if (config.build.productionGzip) {
|
||||
const CompressionWebpackPlugin = require('compression-webpack-plugin'); // eslint-disable-line global-require
|
||||
|
||||
webpackConfig.plugins.push(
|
||||
new CompressionWebpackPlugin({
|
||||
asset: '[path].gz[query]',
|
||||
|
||||
Reference in New Issue
Block a user