Skip to content

Commit b8a29ff

Browse files
authored
Merge pull request #3 from nutboltu/feature-add-screenshot
[feature] add screenshot
2 parents c85e87e + dc3ea14 commit b8a29ff

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

docs/react-search-field.png

3.98 KB
Loading

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@babel/preset-react": "7.0.0",
3636
"@babel/runtime": "7.1.5",
3737
"babel-loader": "8.0.4",
38+
"copy-webpack-plugin": "4.6.0",
3839
"css-loader": "0.28.9",
3940
"eslint": "4.15.0",
4041
"eslint-config-airbnb": "16.1.0",
@@ -44,7 +45,7 @@
4445
"html-webpack-plugin": "3.2.0",
4546
"react-syntax-highlighter": "10.1.1",
4647
"style-loader": "0.19.1",
47-
"terser-webpack-plugin": "^1.1.0",
48+
"terser-webpack-plugin": "1.1.0",
4849
"webpack": "4.26.0",
4950
"webpack-cli": "3.1.2",
5051
"webpack-dev-server": "3.1.10"

src/docs/react-search-field.png

3.98 KB
Loading

webpack.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const path = require('path');
22
const HtmlWebpackPlugin = require('html-webpack-plugin');
3+
const CopyWebpackPlugin = require('copy-webpack-plugin');
34
const TerserPlugin = require('terser-webpack-plugin');
45

56
module.exports = {
@@ -44,5 +45,8 @@ module.exports = {
4445
new HtmlWebpackPlugin({
4546
template: path.join(__dirname, 'src/docs/index.html'),
4647
}),
48+
new CopyWebpackPlugin([{
49+
from: path.join(__dirname, 'src/docs/react-search-field.png'),
50+
}]),
4751
],
4852
};

0 commit comments

Comments
 (0)