-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
打包出错 #45
Comments
使用 Webpack 1 的话,可以参考 README 这里。 无法设置主题是指? |
<echart class="echarts" :options="option" theme="macarons" ></echart> 设置了主题 但是 没有效果 |
有没有 |
import VueECharts from 'vue-echarts'
import 'echarts/theme/macarons.js'
//import VueECharts from 'vue-echarts/components/ECharts.vue'
Vue.component('echart', VueECharts); 加上后,主题并没有改变 参考 README ,使用 {
test: /\.js$/,
loader: 'babel',
include: [
path.join(__dirname, 'src'),
path.join(__dirname, 'node_modules/vue-echarts')
],
exclude: /node_modules(?![\\/]vue-echarts[\\/])/
} 还是一样错误 |
import Vue from 'vue'
import ECharts from 'vue-echarts/components/ECharts.vue'
import 'echarts/theme/dark'
// registering component
Vue.component('chart', ECharts) 这样呢? |
还是一样,折腾累了,由于只是画简单线条,用了 vue-charts, 最后 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用 webpack 打包出错
已配置
使用
import VueECharts from 'vue-echarts'
编译通过,页面显示正常,但是无法设置主题The text was updated successfully, but these errors were encountered: