Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit dfc28ca

Browse files
author
george
committed
update dependencies
1 parent 4a1ac29 commit dfc28ca

File tree

10 files changed

+446
-492
lines changed

10 files changed

+446
-492
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ What does Undernet include?
1616
## Install via npm or yarn
1717

1818
```sh
19-
$ npm install -S undernet
19+
$ npm install -D undernet
2020
```
2121

2222
```sh

config/webpack.dev.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const merge = require("webpack-merge")
22
const common = require("../webpack.common.js")
3-
const CopyWebpackPlugin = require("copy-webpack-plugin")
43

54
module.exports = merge(common, {
65
devtool: "source-map",
@@ -10,24 +9,5 @@ module.exports = merge(common, {
109
historyApiFallback: true,
1110
port: 3000,
1211
},
13-
plugins: [
14-
new CopyWebpackPlugin([
15-
{
16-
from: "public/manifest.json",
17-
to: "manifest.json",
18-
cache: true,
19-
},
20-
{
21-
from: "public/browserconfig.xml",
22-
to: "browserconfig.xml",
23-
cache: true,
24-
},
25-
{
26-
from: "public/static/**/*",
27-
to: "assets/[name].[ext]",
28-
cache: true,
29-
},
30-
]),
31-
],
3212
mode: "development",
3313
})

config/webpack.prod.js

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
const path = require("path")
21
const merge = require("webpack-merge")
32
const CompressionPlugin = require("compression-webpack-plugin")
43
const common = require("../webpack.common.js")
5-
const CopyWebpackPlugin = require("copy-webpack-plugin")
64
const CleanWebpackPlugin = require("clean-webpack-plugin")
75
const UglifyJsPlugin = require("uglifyjs-webpack-plugin")
86
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin")
@@ -25,37 +23,16 @@ module.exports = merge(common, {
2523
stats: { children: false, warnings: false, entrypoints: false, modules: false },
2624
plugins: [
2725
// remove previous build assets
28-
new CleanWebpackPlugin(["../build"], {
29-
root: path.resolve(__dirname),
30-
verbose: true,
31-
allowExternal: true,
32-
}),
26+
new CleanWebpackPlugin(),
3327
new OptimizeCSSAssetsPlugin({
3428
cssProcessorPluginOptions: {
3529
preset: ["default", { discardComments: { removeAll: true } }],
3630
},
3731
}),
3832
new CompressionPlugin({
39-
test: /\.(js|css)$/,
33+
test: /\.(js|css|html)$/,
4034
algorithm: "gzip",
4135
}),
42-
new CopyWebpackPlugin([
43-
{
44-
from: "public/manifest.json",
45-
to: "manifest.json",
46-
cache: true,
47-
},
48-
{
49-
from: "public/browserconfig.xml",
50-
to: "browserconfig.xml",
51-
cache: true,
52-
},
53-
{
54-
from: "public/static/**/*",
55-
to: "assets/[name].[ext]",
56-
cache: true,
57-
},
58-
]),
5936
],
6037
mode: "production",
6138
})

0 commit comments

Comments
 (0)