add initial cateditor vue files

This commit is contained in:
Seth Ladygo
2019-04-01 17:08:48 -07:00
parent d1aa3fa7cd
commit 4e99dcd1e0
19 changed files with 13217 additions and 0 deletions

78
cateditor/vue.config.js Normal file
View File

@ -0,0 +1,78 @@
// 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/static/')
.publicPath('')
.host('0.0.0.0')
.port(8001)
// .contentBase(path.join(__dirname, 'dist'))
.hot(true)
.hotOnly(true)
// .watchOptions({poll: 1000})
.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')
},
// 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,
},
*/
// ...
}