diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index c07421c1e..d3cac877d 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -9,6 +9,8 @@ const attachments = require("./attachments"); module.exports = { entry: { demo: attachments.demo, + // 用于启动dev模式时,工程引用调试 + fineui: attachments.fineui, }, externals: { lodash: '_', diff --git a/webpack/webpack.dev.js b/webpack/webpack.dev.js index 55032947b..48bcccbd6 100644 --- a/webpack/webpack.dev.js +++ b/webpack/webpack.dev.js @@ -10,7 +10,7 @@ const dirs = require("./dirs"); const common = require("./webpack.common.js"); module.exports = merge(common, { - devtool: "eval-source-map", + devtool: "source-map", output: { path: dirs.DEST, filename: "[name].js", diff --git a/webpack/webpack.prod.js b/webpack/webpack.prod.js index ac6b86eae..86ca367d5 100644 --- a/webpack/webpack.prod.js +++ b/webpack/webpack.prod.js @@ -15,7 +15,6 @@ module.exports = merge.smart(common, { mode: "production", entry: { font: attachments.font, - fineui: attachments.fineui, "fineui.min": attachments.fineui, "fineui.ie.min": attachments.fineuiIE, utils: attachments.utils,