mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 08:42:19 +08:00
build: minor webpack fix
This commit is contained in:
@ -9,7 +9,15 @@ const ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||||
const WebpackCleanupPlugin = require('webpack-cleanup-plugin');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const pkg = require('../../package.json');
|
||||
const _ = require('lodash');
|
||||
|
||||
let dependencies = Object.keys(pkg.dependencies);
|
||||
// remove jquery
|
||||
dependencies = _.filter(dependencies, function(key) {
|
||||
return key !== 'jquery';
|
||||
});
|
||||
// add it first
|
||||
dependencies.unshift('jquery');
|
||||
|
||||
module.exports = merge(common, {
|
||||
devtool: "source-map",
|
||||
|
Reference in New Issue
Block a user