K
K
Kotaro Hiba2019-11-23 21:35:48
webpack
Kotaro Hiba, 2019-11-23 21:35:48

Core packages for webpack 4?

Greetings to all front-and developers, guys, tell me which webpack packages are simply required to be installed in everyday work, that's what I have, is it worth adding something else and the second question, no one has encountered such a bug when using the package extract-text-webpack-plugin, webpack-dev-server stopped updating the page in real time, if anyone came across, tell me how to fix this case.

"devDependencies": {
    "babel-core": "^6.26.3",
    "babel-loader": "^8.0.6",
    "babel-preset-env": "^1.7.0",
    "babel-preset-stage-3": "^6.24.1",
    "css-loader": "^3.2.0",
    "extract-text-webpack-plugin": "^4.0.0-beta.0",
    "node-sass": "^4.13.0",
    "path": "^0.12.7",
    "sass-loader": "^8.0.0",
    "style-loader": "^1.0.0",
    "webpack": "^4.41.2",
    "webpack-cli": "^3.3.10",
    "webpack-dev-server": "^3.9.0"
  },

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
finflaex, 2019-12-05
@finflaex

"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
everything else only if you KNOW what this package is for and USE this package - I even have a different list for each project:
one full stack (react, routing, redux, sass, font loaders, pictures ...), another front (only logic - the designer himself compiles styles, fonts, pictures, etc.), third plugins (react, sass) - there is no universal in every project even minification has its own subtleties, and it depends on the programming style for TypeScript - one minifier, for React - another, for Vue - the third ... , babel can be used both for compatibility and for optimization, eslint - on the requirements for code design ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question