Skip to content

Commit

Permalink
Merge pull request #13 from tomik23:tomik23/issue12
Browse files Browse the repository at this point in the history
Terser Plugin error
  • Loading branch information
tomickigrzegorz authored Oct 17, 2020
2 parents 32e6f8e + 4dfd8a8 commit eff94aa
Show file tree
Hide file tree
Showing 8 changed files with 699 additions and 834 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
config/
docs/
node_modules/
config/
node_modules/
42 changes: 0 additions & 42 deletions .eslintrc

This file was deleted.

25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
env: {
browser: true,
node: true,
es6: true,
},
extends: ['eslint:recommended'],
plugins: ['prettier'],
rules: {
'prettier/prettier': [
'warn',
{
semi: true,
singleQuote: true,
tabWidth: 2,
endOfLine: 'auto',
printWidth: 80,
},
],
'comma-dangle': ['error', 'only-multiline'],
'linebreak-style': ['error', 'windows'],
'no-param-reassign': [2, { props: false }],
},
parser: '@babel/eslint-parser',
};
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ npm run prod

- [`@babel/core`](https://www.npmjs.com/package/@babel/core) - Transpile ES6+ to backwards compatible JavaScript
- [`@babel/preset-env`](https://babeljs.io/docs/en/babel-preset-env) - Smart defaults for Babel
- [`babel-eslint`](https://github.com/babel/babel-eslint) - Lint Babel code
- [`@babel/eslint-parser`](https://www.npmjs.com/package/@babel/eslint-parser) - Is a parser that allows ESLint to run on source code that is transformed by Babel.
- [`eslint`](https://github.com/eslint/eslint) - ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code
- [`eslint-config-airbnb-base`](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base/) - This package provides Airbnb's base JS
- [`eslint:recommended`](https://eslint.org/docs/user-guide/configuring#using-eslintrecommended) - An extends property value "eslint:recommended" enables a subset of core rules that report common problems
- [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) - Turns off all rules that are unnecessary or might conflict with Prettier
- [`eslint-plugin-html`](https://github.com/BenoitZugmeyer/eslint-plugin-html/) An ESLint plugin to extract and lint scripts from HTML files
- [`eslint-plugin-import`](https://github.com/benmosher/eslint-plugin-import/) ESLint plugin with rules that help validate proper imports
Expand Down
4 changes: 1 addition & 3 deletions config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ const configureFileLoader = () => {
// configure Terser
const configureTerser = () => {
return {
cache: true,
parallel: true,
sourceMap: true,
parallel: true
};
};

Expand Down
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "new-site-webpack-build",
"version": "1.0.3",
"version": "1.0.4",
"description": "webpack multiple entry and output",
"license": "MIT",
"keywords": [
"webpack",
"pug",
Expand All @@ -25,24 +26,20 @@
"last 1 safari version"
]
},
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@babel/core": "^7.12.3",
"@babel/eslint-parser": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"autoprefixer": "^9.8.6",
"babel-loader": "^8.1.0",
"babel-preset-env": "^1.7.0",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^6.2.1",
"core-js": "^3.6.5",
"cross-env": "^7.0.2",
"css-loader": "^5.0.0",
"cssnano": "^4.1.10",
"eslint": "^7.11.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-html": "^6.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-config-prettier": "^6.13.0",
"eslint-plugin-prettier": "^3.1.4",
"file-loader": "^6.1.1",
"html-webpack-plugin": "^4.5.0",
Expand All @@ -55,7 +52,8 @@
"sass-loader": "^10.0.3",
"sass-resources-loader": "^2.1.1",
"style-loader": "^2.0.0",
"webpack": "^5.1.0",
"terser-webpack-plugin": "^5.0.0",
"webpack": "^5.1.3",
"webpack-bundle-analyzer": "^3.9.0",
"webpack-cli": "^4.0.0",
"webpack-dev-server": "^3.11.0",
Expand Down
Loading

0 comments on commit eff94aa

Please sign in to comment.