add initial cateditor vue files
This commit is contained in:
78
cateditor/vue.config.js
Normal file
78
cateditor/vue.config.js
Normal 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,
|
||||
},
|
||||
*/
|
||||
// ...
|
||||
}
|
||||
Reference in New Issue
Block a user