Jump to content

Perfect package.json file to install WebPack in PS 1.7 ?


Recommended Posts

Dear Friends,

 

Trying differents installation of the WebPack, I found this Package.json interesting for Prestashop 1.7

Can someone give a Dobule Check?

{
  "name": "new-theme",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "build": "webpack --progress -p",
    "watch": "webpack --progress --colors --watch",
    "debug": "webpack --progress --colors --debug --devtool source-map --output-pathinfo --display-chunks --watch"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "babel-loader": "^5.3.2",
    "babel-core": "^5.0.0",
    "bootstrap": "4.0.0-alpha.4",
    "bootstrap-touchspin": "^3.1.1",
    "bourbon": "^4.2.6",
    "css-loader": "^0.23.1",
    "expose-loader": "^0.7.1",
    "extract-text-webpack-plugin": "^1.0.0",
    "file-loader": "^0.8.5",
    "flexibility": "^1.0.5",
    "jquery": "^2.1.4",
    "material-design-icons": "^2.1.3",
    "node-sass": "^3.9.2",
    "notosans-fontface": "~1.0.1",
    "open-sans-fontface": "~1.4.0",
    "postcss-flexibility": "^1.0.2",
    "postcss-loader": "^0.8.0",
    "sass-loader": "^3.1.2",
    "style-loader": "^0.13.0",
    "tether": "^1.3.4",
    "velocity-animate": "^1.2.3",
    "webpack": "^1.12.9",
    "webpack-sources": "^0.1.0"
    
  }
}
Edited by Web Curator (see edit history)
Link to comment
Share on other sites

  • 1 year later...

And what about upgrading? Most of these plugins are very much outdated.

npm audit

Shows over 30 vulnerabilities, a lot of them are of high severity.
So far I've only managed to update node-sass. If I do

npm update

some modules get updated (like webpack) but then whole thing breaks on build. I tried at least upgrade bootstrap to 4.1.1 (why use over 2 years old alfa release, if there's proper stable one!?), but even this couldn't  be done. Is there a way to make it more up to date/faster?

Edited by Sharak (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...