Skip to content

Commit

Permalink
V3.0.0 dev (pre-release-3) (#42)
Browse files Browse the repository at this point in the history
V3.0.0 dev (pre-release-3)
  • Loading branch information
DaniloNovakovic authored Nov 23, 2019
2 parents 75cae50 + 77f2ca4 commit 0ba08e1
Show file tree
Hide file tree
Showing 15 changed files with 1,128 additions and 285 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
env: {
commonjs: true,
es6: true
},
extends: "eslint:recommended",
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: "module"
},
plugins: ["react"],
rules: {}
};
4 changes: 2 additions & 2 deletions build-utils/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const options = {
new CopyWebpackPlugin([
{
from: path.join(commonPaths.publicPath, "manifest.json"),
transform: function(content, path) {
transform: function(content) {
// generates the manifest file using the package.json informations
const contentJson = JSON.parse(content.toString());
const newManifest = {
Expand Down Expand Up @@ -104,7 +104,7 @@ const options = {
new HtmlWebpackPlugin({
template: path.join(commonPaths.publicPath, "background.html"),
filename: "background.html",
chunks: ["background"]
excludeChunks: ["bookmarkManager", "options", "popup"]
}),
new HtmlWebpackPlugin({
template: path.join(commonPaths.publicPath, "bookmarkManager.html"),
Expand Down
3 changes: 3 additions & 0 deletions build-utils/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const options = {
mode: "production",
optimization: {
splitChunks: {
chunks: "all"
},
minimizer: [
new TerserPlugin({
cache: true,
Expand Down
Loading

0 comments on commit 0ba08e1

Please sign in to comment.