mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
webpack speed improvements
This commit is contained in:
parent
66ce588182
commit
59407fc0c4
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate",
|
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate",
|
||||||
"version": "1.8.1",
|
"version": "1.8.2",
|
||||||
"author": "Tony Air <tony@twma.pro>",
|
"author": "Tony Air <tony@twma.pro>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "This UI Kit allows you to build Bootstrap 4 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
"description": "This UI Kit allows you to build Bootstrap 4 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
||||||
@ -85,6 +85,7 @@
|
|||||||
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
||||||
"favicons-webpack-plugin": "^1.0.2",
|
"favicons-webpack-plugin": "^1.0.2",
|
||||||
"file-loader": "^1.1.5",
|
"file-loader": "^1.1.5",
|
||||||
|
"hard-source-webpack-plugin": "^0.13.1",
|
||||||
"html-loader": "^0.5.5",
|
"html-loader": "^0.5.5",
|
||||||
"html-webpack-plugin": "^4.0.0-beta.11",
|
"html-webpack-plugin": "^4.0.0-beta.11",
|
||||||
"imagemin-gifsicle": "^7.0.0",
|
"imagemin-gifsicle": "^7.0.0",
|
||||||
@ -92,6 +93,7 @@
|
|||||||
"imagemin-optipng": "^7.1.0",
|
"imagemin-optipng": "^7.1.0",
|
||||||
"imagemin-svgo": "^7.0.0",
|
"imagemin-svgo": "^7.0.0",
|
||||||
"imagemin-webpack": "^5.1.1",
|
"imagemin-webpack": "^5.1.1",
|
||||||
|
"loglevel": "^1.6.7",
|
||||||
"lost": "^8.3.1",
|
"lost": "^8.3.1",
|
||||||
"material-design-color": "^2.3.2",
|
"material-design-color": "^2.3.2",
|
||||||
"node-sass": "^4.13.1",
|
"node-sass": "^4.13.1",
|
||||||
|
@ -7,6 +7,8 @@ const path = require('path');
|
|||||||
const filesystem = require('fs');
|
const filesystem = require('fs');
|
||||||
|
|
||||||
const autoprefixer = require('autoprefixer');
|
const autoprefixer = require('autoprefixer');
|
||||||
|
|
||||||
|
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
|
||||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
|
|
||||||
const TerserPlugin = require('terser-webpack-plugin');
|
const TerserPlugin = require('terser-webpack-plugin');
|
||||||
@ -20,6 +22,7 @@ const plugins = [
|
|||||||
NODE_ENV: JSON.stringify('production'),
|
NODE_ENV: JSON.stringify('production'),
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
new HardSourceWebpackPlugin(),
|
||||||
new webpack.LoaderOptionsPlugin({
|
new webpack.LoaderOptionsPlugin({
|
||||||
minimize: COMPRESS,
|
minimize: COMPRESS,
|
||||||
debug: false,
|
debug: false,
|
||||||
@ -240,10 +243,12 @@ module.exports = {
|
|||||||
['@babel/transform-react-jsx'],
|
['@babel/transform-react-jsx'],
|
||||||
['react-hot-loader/babel'],
|
['react-hot-loader/babel'],
|
||||||
],
|
],
|
||||||
|
cacheDirectory: true,
|
||||||
|
cacheCompression: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
/*{
|
||||||
test: /\.tsx?$/,
|
test: /\.tsx?$/,
|
||||||
use: 'ts-loader',
|
use: 'ts-loader',
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
@ -251,7 +256,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
test: /\.coffee?$/,
|
test: /\.coffee?$/,
|
||||||
use: 'coffee-loader',
|
use: 'coffee-loader',
|
||||||
},
|
},*/
|
||||||
{
|
{
|
||||||
test: /\.worker\.js$/,
|
test: /\.worker\.js$/,
|
||||||
use: {
|
use: {
|
||||||
|
Loading…
Reference in New Issue
Block a user