This commit is contained in:
dong_bo0602 2020-06-19 20:54:05 +08:00
parent 8cf774690a
commit 481f06841b
4 changed files with 5 additions and 4 deletions

View File

@ -8,5 +8,5 @@
}],
"stage-2"
],
"plugins": ["transform-vue-jsx", "transform-runtime"]
"plugins": ["transform-vue-jsx", "transform-runtime", "transform-es2015-arrow-functions"]
}

View File

@ -12,7 +12,7 @@ import 'styles/reset.css'
import 'swiper/dist/css/swiper.css'
import 'vue-layer/lib/vue-layer.css'
import axios from 'axios'
import flvjs from 'flv.js'
import flvjs from 'flv.js/dist/flv.min'
Vue.use(flvjs)
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'
Vue.prototype.$axios = axios

View File

@ -38,7 +38,7 @@
import Header from '@/common/components/Header'
import Footer from '@/common/components/Footer'
import axios from 'axios'
import flvjs from 'flv.js'
import flvjs from 'flv.js/dist/flv.min'
var player
export default {
name: 'BroadcastDetail',

View File

@ -1,5 +1,6 @@
module.exports = {
chainWebpack: config => {
config.entry.app = ['babel-polyfill', './src/main.js'];
config.entry('main').add('babel-polyfill') // main是入口js文件
},
transpileDependencies: ['flv.js']
}