mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 05:08:51 +00:00
correct deps loading and shrinkwrap
This commit is contained in:
parent
bbffa9830b
commit
2106a5ebd3
3 changed files with 378 additions and 428 deletions
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]',
|
||||
|
|
|
|||
Loading…
Reference in a new issue