rm vue.config.js - now created by ansible
This commit is contained in:
@ -1,96 +0,0 @@
|
||||
// vue.config.js
|
||||
// https://cli.vuejs.org/config/
|
||||
|
||||
var path = require('path');
|
||||
const BundleTracker = require("webpack-bundle-tracker");
|
||||
|
||||
module.exports = {
|
||||
publicPath: "http://newbeta.keen.apparentinc.com/vue/",
|
||||
outputDir: './dist/',
|
||||
|
||||
chainWebpack: config => {
|
||||
|
||||
config.optimization.
|
||||
splitChunks(false)
|
||||
|
||||
config.plugin('BundleTracker')
|
||||
.use(BundleTracker, [{filename: './webpack-stats.json'}])
|
||||
|
||||
config.resolve.alias
|
||||
.set('__STATIC__', 'static')
|
||||
|
||||
config.devServer
|
||||
.public('http://newbeta.keen.apparentinc.com/vue')
|
||||
.publicPath('')
|
||||
.host('0.0.0.0')
|
||||
.port(8001)
|
||||
// .contentBase(path.join(__dirname, 'dist'))
|
||||
.hot(false)
|
||||
.hotOnly(false)
|
||||
.disableHostCheck(true) // https://github.com/webpack/webpack-dev-server/issues/1604
|
||||
// .watchOptions({poll: true})
|
||||
.clientLogLevel('info')
|
||||
.https(false)
|
||||
.headers({"Access-Control-Allow-Origin": ["\*"]})
|
||||
.setup(function(app, server) {
|
||||
app.set('trust proxy', true)
|
||||
app.use(function(req, res, next) {
|
||||
console.log(req.originalUrl)
|
||||
next()
|
||||
});
|
||||
})
|
||||
.allowedHosts.add('newbeta.keen.apparentinc.com')
|
||||
},
|
||||
|
||||
pages: {
|
||||
'editor': {
|
||||
entry: './src/pages/editor/main.js',
|
||||
template: 'public/index.html',
|
||||
filename: 'editor.html',
|
||||
//title: 'Catalog Editor',
|
||||
//hunks: ['chunk-vendors', 'chunk-common', 'editor'],
|
||||
},
|
||||
'list': {
|
||||
entry: './src/pages/list/main.js',
|
||||
template: 'public/index.html',
|
||||
filename: 'list.html',
|
||||
//title: 'Catalog List',
|
||||
//hunks: ['chunk-vendors', 'chunk-common', 'editor'],
|
||||
},
|
||||
}
|
||||
// devServer: {
|
||||
// public: 'http://0.0.0.0:8001',
|
||||
// host: '0.0.0.0',
|
||||
// port: 8001,
|
||||
// https: false,
|
||||
// hotOnly: true,
|
||||
// watchOptions: { poll: 1000 },
|
||||
// headers: { "Access-Control-Allow-Origin": ["\*"]},
|
||||
// allowedHosts: [
|
||||
// 'newbeta.keen.apparentinc.com',
|
||||
// ],
|
||||
// },
|
||||
|
||||
/*
|
||||
// ...
|
||||
devServer: {
|
||||
// open: process.platform === 'darwin',
|
||||
host: '0.0.0.0',
|
||||
port: 8001,
|
||||
https: false,
|
||||
//disableHostCheck: true,
|
||||
allowedHosts: [
|
||||
'newbeta.keen.apparentinc.com',
|
||||
],
|
||||
// setup: function(app, server) {
|
||||
// app.set('trust proxy', true)
|
||||
// app.use(function(req, res, next) {
|
||||
// console.log(req.ips)
|
||||
// next()
|
||||
// });
|
||||
// },
|
||||
// hotOnly: false,
|
||||
},
|
||||
*/
|
||||
// ...
|
||||
}
|
||||
Reference in New Issue
Block a user