{"size": 854, "ext": "js", "max_stars_repo_path": "webpack.dev.js", "max_stars_repo_name": "h1romas4/springboot-template-web", "max_stars_repo_stars_event_min_datetime": "2018-04-24T07:08:56.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-05T18:17:54.000Z", "max_issues_repo_path": "webpack.dev.js", "max_issues_repo_name": "h1romas4/springboot-template-web", "max_issues_repo_issues_event_min_datetime": "2020-04-10T13:03:56.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-19T00:29:48.000Z", "max_forks_repo_path": "webpack.dev.js", "max_forks_repo_name": "h1romas4/springboot-template-web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 23.7222222222, "max_line_length": 113, "alphanum_fraction": 0.5866510539}
const { merge } = require('webpack-merge');
const path = require('path');
const common = require('./webpack.config.js');

/**
 * @type {import('webpack').Configuration}
 */
module.exports = merge(common, {
  devtool: 'source-map',
  devServer: {
    inline: true,
    contentBase: [
        path.join(__dirname, '/src/main/resources/templates'), // eslint-disable-line
    ],
    before: function(app) {
      app.use('/api', function (req, res) {
        res.type('application/json')
        // Note: directory traversal
        res.sendFile(path.join(__dirname, '/src/test/js/json', req.originalUrl + ".json")) // eslint-disable-line
      })
    },
    watchContentBase: true,
    port: 9080,
    open: true,
    openPage: "home.html"
  },
  resolve: {
    alias: {
      'vue$': 'vue/dist/vue.js'
    }
  },
  performance: {
    hints: false
  }
});
