mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
fix(build): fix #777
This commit is contained in:
parent
7215b0b636
commit
9bd7dbded0
3 changed files with 3 additions and 6 deletions
|
|
@ -1,5 +1,4 @@
|
|||
const webpack = require('webpack');
|
||||
const path = require('path');
|
||||
const helpers = require('./helpers');
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
const helpers = require('./helpers');
|
||||
const path = require('path');
|
||||
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
|
||||
const webpackMergeDll = webpackMerge.strategy({plugins: 'replace'});
|
||||
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev
|
||||
|
|
@ -42,7 +41,7 @@ module.exports = function (options) {
|
|||
* See: http://webpack.github.io/docs/configuration.html#devtool
|
||||
* See: https://github.com/webpack/docs/wiki/build-performance#sourcemaps
|
||||
*/
|
||||
devtool: 'cheap-module-source-map',
|
||||
devtool: 'eval-source-map',
|
||||
|
||||
/**
|
||||
* Options affecting the output of the compilation.
|
||||
|
|
@ -72,7 +71,7 @@ module.exports = function (options) {
|
|||
*
|
||||
* See: http://webpack.github.io/docs/configuration.html#output-sourcemapfilename
|
||||
*/
|
||||
sourceMapFilename: '[name].map',
|
||||
sourceMapFilename: '[file].map',
|
||||
|
||||
/** The filename of non-entry chunks as relative path
|
||||
* inside the output.path directory.
|
||||
|
|
@ -135,7 +134,7 @@ module.exports = function (options) {
|
|||
},
|
||||
dllDir: helpers.root('dll'),
|
||||
webpackConfig: webpackMergeDll(commonConfig({env: ENV}), {
|
||||
devtool: 'cheap-module-source-map',
|
||||
devtool: 'eval-source-map',
|
||||
plugins: []
|
||||
})
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ const commonConfig = require('./webpack.common.js'); // the settings that are co
|
|||
/**
|
||||
* Webpack Plugins
|
||||
*/
|
||||
const DedupePlugin = require('webpack/lib/optimize/DedupePlugin');
|
||||
const DefinePlugin = require('webpack/lib/DefinePlugin');
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
const IgnorePlugin = require('webpack/lib/IgnorePlugin');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue