Skip to content

Commit

Permalink
fix: package
Browse files Browse the repository at this point in the history
  • Loading branch information
imjustpassby committed May 24, 2020
1 parent 07418da commit 9997a70
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
36 changes: 16 additions & 20 deletions config/index.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
'use strict'
"use strict";
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.

const path = require('path')
const path = require("path");

module.exports = {
dev: {

// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
assetsSubDirectory: "static",
assetsPublicPath: "/",
proxyTable: {
'/api': {
target: 'http://localhost:3000',
"/api": {
target: "https://ipassby.cloud",
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
pathRewrite: {}
}
},

// Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST
host: "localhost", // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true,
errorOverlay: true,
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-


/**
* Source Maps
*/

// https://webpack.js.org/configuration/devtool/#development
devtool: 'cheap-module-eval-source-map',
devtool: "cheap-module-eval-source-map",

// If you have problems debugging vue-files in devtools,
// set this to false - it *may* help
Expand All @@ -46,32 +42,32 @@ module.exports = {

build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
index: path.resolve(__dirname, "../dist/index.html"),

// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
assetsRoot: path.resolve(__dirname, "../dist"),
assetsSubDirectory: "static",
assetsPublicPath: "/",

/**
* Source Maps
*/

productionSourceMap: false,
// https://webpack.js.org/configuration/devtool/#production
devtool: '#source-map',
devtool: "#source-map",

// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
// npm install --save-dev compression-webpack-plugin
productionGzip: true,
productionGzipExtensions: ['js', 'css', 'html'],
productionGzipExtensions: ["js", "css", "html"],

// Run the build command with an extra argument to
// View the bundle analyzer report after build finishes:
// `npm run build --report`
// Set to `true` or `false` to always turn it on or off
bundleAnalyzerReport: process.env.npm_config_report
}
}
};
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"commit": "git-cz",
"build": "node build/build.js"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"ant-design-vue": "^1.3.10",
"aplayer": "^1.10.1",
Expand All @@ -35,9 +41,11 @@
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1",
"commitizen": "^4.1.2",
"compression-webpack-plugin": "^1.1.11",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.28.11",
"cz-conventional-changelog": "^3.2.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^1.1.11",
"friendly-errors-webpack-plugin": "^1.6.1",
Expand Down

0 comments on commit 9997a70

Please sign in to comment.