webpackJsonp is not defined: webpack-dev-server and CommonsChunkPlugin
问题 This is my webpack.config.js file: const webpack = require('webpack'); const path = require('path'); module.exports = { cache: true, devtool: 'source-map', entry: { app : [ './src/index.js' ], vendor: ['lodash'] }, output: { filename: 'bundle.js', path: path.join(__dirname, 'dist'), publicPath: '/dist/', pathinfo: true }, module: { loaders: [ { test: /\.js$/, exclude: /node_modules/, loaders: ['babel'] }, { test: /\.scss/, exclude: /node_modules/, loaders: ['style', 'css', 'sass'] } ] },