artembatura / zero-scriptsjs

A modular approach to develop modern JavaScript projects with minimal configuration.
MIT License
6 stars 1 forks source link

Allow to configure source maps generation for different environments #658

Open artembatura opened 3 years ago

artembatura commented 3 years ago

For example, currently we can do:

{
  "zero-scripts": {
    "webpack-config": {
      "useSourceMap": true
    }
  }
}

Proposed:

{
  "zero-scripts": {
    "webpack-config": {
      "useSourceMap": {
        "development": true,
        "production": false
      }
    }
  }
}