diff --git a/package.json b/package.json index 32b3ca7..055fc47 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "lib": "vue-cli-service build --target lib --name eagle-web-toolkit --dest lib packages/index.js" + "lib": "vue-cli-service build --target lib --name eagle-web-toolkit packages/index.js" }, "dependencies": { "axios": "^0.19.0", diff --git a/vue.config.js b/vue.config.js index 5b195a4..998a740 100644 --- a/vue.config.js +++ b/vue.config.js @@ -11,26 +11,7 @@ module.exports = { }, // eslint-loader 是否在保存的时候检查 lintOnSave: true, - // webpack配置 写法1 - // configureWebpack: { - // resolve: { - // alias: { - // '@': path.resolve(__dirname, 'examples'), - // } - // }, - // module: { - // rules: [ - // { - // test: /\.md$/, - // use: [ - // 'vue-loader', - // path.resolve(__dirname, "./webpack/markdown-loader.js"), - // ], - // } - // ] - // } - // }, - // webpack配置 写法2 + // webpack配置扩展markdown configureWebpack: config => { config.resolve.alias['@'] = path.resolve(__dirname, 'examples'); config.module.rules.push({ @@ -41,22 +22,6 @@ module.exports = { ], }); }, - // webpack配置 链式写法 - // chainWebpack: config => { - // config.resolve.alias - // .set('@', path.resolve(__dirname, 'examples')) - // config.module - // .rule("md") - // .test(/\.md/) - // .use("vue") - // .loader("vue-loader") - // .end() - // .use("markdown") - // .loader( - // path.resolve(__dirname, "./webpack/markdown-loader.js") - // ) - // .end(); - // }, // webpack-dev-server 相关配置 devServer: { open: true, @@ -66,4 +31,5 @@ module.exports = { hotOnly: false, disableHostCheck: true, }, + productionSourceMap: false, // 打包组件库时不生成source map } -- libgit2 0.21.0