webpack.dev.js 793 B

1234567891011121314151617
  1. var { merge } = require('webpack-merge')
  2. var common = require('./webpack.common.js')
  3. var webpack = require('webpack')
  4. module.exports = merge(common, {
  5. devtool: 'inline-source-map',
  6. mode: 'development',
  7. plugins: [
  8. new webpack.EnvironmentPlugin({
  9. STATIC_FILES_SUBFOLDER: false, // Set to other directory if NOT using webpack-dev-server
  10. DEBUG: false,
  11. OSMD_DEBUG_CONTROLS: true, // unfortunately, cross-env doesn't seem enough to set this in the demo when using npm start
  12. OSMD_DEMO_TITLE: 'OpenSheetMusicDisplay Demo (Developer)',
  13. DRAW_BOUNDING_BOX_ELEMENT: false // Specifies the element to draw bounding boxes for (e.g. 'GraphicalLabels'). If 'all', bounding boxes are drawn for all elements.
  14. })
  15. ]
  16. })