{"size": 1143, "ext": "js", "max_stars_repo_path": "build/webpack.dev.conf.js", "max_stars_repo_name": "Luummii/threejs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "build/webpack.dev.conf.js", "max_issues_repo_name": "Luummii/threejs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/webpack.dev.conf.js", "max_forks_repo_name": "Luummii/threejs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.2142857143, "max_line_length": 75, "alphanum_fraction": 0.6719160105}
import path from 'path'
import webpack from 'webpack'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin'
import merge from 'webpack-merge'

import { styleLoaders } from './utils'
import config from './config'
import baseConf from './webpack.base.conf'

const env = config.dev.env

export default merge(baseConf, {
  module: {
    rules: styleLoaders({ sourceMap: false })
  },
  devtool: '#cheap-module-eval-source-map',
  plugins: [
    new HtmlWebpackPlugin({
      title: 'Vue-starter-kit - the template for fast start your app.',
      filename: 'index.html',
      template: 'index.html',
      inject: true
    }),
    new webpack.WatchIgnorePlugin([
      path.join(__dirname, 'node_modules')
    ]),
    new FriendlyErrorsPlugin({
      compilationSuccessInfo: {
        messages: ['You appication is running here http://localhost:5000'],
        notes: ['Process go:']
      },
      clearConsole: true
    }),
    new webpack.NoEmitOnErrorsPlugin(),
    new webpack.DefinePlugin({
      'process.env': env
    }),
    new webpack.HotModuleReplacementPlugin()
  ]
})
