Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Commit 46f04fc

Browse files
committed
Merge branch 'release/0.1.1'
2 parents 4edb543 + 42c68e1 commit 46f04fc

File tree

5 files changed

+53
-11
lines changed

5 files changed

+53
-11
lines changed

.babelrc

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
],
1515
"plugins": [
1616
"async-to-promises",
17-
"transform-object-rest-spread"
17+
"transform-object-rest-spread",
18+
"transform-class-properties"
1819
],
1920
"env": {
2021
"test": {
@@ -33,7 +34,8 @@
3334
"plugins": [
3435
"async-to-promises",
3536
"transform-es2015-modules-commonjs",
36-
"transform-object-rest-spread"
37+
"transform-object-rest-spread",
38+
"transform-class-properties"
3739
]
3840
}
3941
}

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ The following list of tools was used and configured in this boilerplate:
1818
- Webpack 3
1919
- Electron-packager (basic configuration)
2020

21+
2122
## Build an application
2223
- Set the name of your application in the `package.json` as `productName`.
2324
- Run `npm run package`
2425
Feel free to edit the `postpackage` command to include more options or flags for `electron-packager` to match your needs
2526

27+
By default, `--asar` flag is used with `electron-packager`, meaning that after you build your app, you will not be able to check the content of it, because it will be archived and the source code will be hidden. To be able to see the content, remove the `--asar` flag from the `postpackage` command.
28+
2629
## Dev hot-reload mode
2730
`npm run dev`
2831

package-lock.json

+39-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "basic-react-redux-electron-tailwindcss",
33
"productName": "My App",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"private": true,
66
"main": "main.js",
77
"author": "Daniyil Vasylenko <https://github.com/Spring3>",
@@ -27,6 +27,7 @@
2727
"babel-jest": "^22.4.3",
2828
"babel-loader": "^7.1.2",
2929
"babel-plugin-async-to-promises": "^1.0.5",
30+
"babel-plugin-transform-class-properties": "^6.24.1",
3031
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
3132
"babel-plugin-transform-object-rest-spread": "^6.26.0",
3233
"babel-preset-env": "^1.6.1",
@@ -42,11 +43,11 @@
4243
"history": "^4.7.2",
4344
"html-webpack-plugin": "^2.28.0",
4445
"jest": "^22.4.3",
46+
"optimize-css-assets-webpack-plugin": "^3.2.0",
4547
"postcss": "^6.0.21",
4648
"postcss-loader": "^2.1.4",
4749
"prop-types": "^15.6.1",
4850
"purgecss-webpack-plugin": "^0.22.0",
49-
"react-mock-router": "^1.0.15",
5051
"react-test-renderer": "^16.3.2",
5152
"redux-mock-store": "^1.5.1",
5253
"style-loader": "^0.19.0",

webpack.build.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
44
const ExtractTextPlugin = require('extract-text-webpack-plugin');
55
const PurgecssPlugin = require('purgecss-webpack-plugin');
66
const NodeExternals = require('webpack-node-externals');
7+
const OptimizeCssPlugin = require('optimize-css-assets-webpack-plugin');
78
const glob = require('glob-all');
89
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
910

@@ -81,6 +82,9 @@ module.exports = {
8182
comments: false
8283
}
8384
}),
85+
new OptimizeCssPlugin({
86+
cssProcessorOptions: { discardComments: { removeAll: true } }
87+
}),
8488
new PurgecssPlugin({
8589
paths: glob.sync([
8690
SRC_DIR + '/index.html',

0 commit comments

Comments
 (0)