123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- const webpack = require('webpack')
- module.exports = {
- /*
- ** Headers of the page
- */
- head: {
- title: 'nuxt-demo',
- meta: [
- { charset: 'utf-8' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
- { hid: 'description', name: 'description', content: 'Nuxt.js project' }
- ],
- link: [
- { rel: 'icon', type: 'image/x-icon', href: '/icon.png' },
- // { rel: 'stylesheet', type: 'text/css', href: 'https://t.focus-res.cn/front-end/icon2018/iconfont.css' }
- ],
- script: [
- {src: 'https://api.map.baidu.com/api?v=2.0&ak=OxAEbfrVXXqWUSC4nP8mYi3bTKRBcP6u&s=1'},
- {src: "https://s22.cnzz.com/z_stat.php?id=1274340249&web_id=1274340249"},
- {src: "https://hm.baidu.com/hm.js?386f99c9fffaef40eb761d464a025698"},
- // {src: "http://gosspublic.alicdn.com/aliyun-oss-sdk-4.4.4.min.js"},
- ]
- },
- /*
- ** Customize the progress bar color
- */
- loading: { color: '#3B8070' },
- plugins: [
- '~/plugins/element-ui',
- '~/plugins/youmeng'
- ],
- //全局css
- css:[
- '~assets/css/base.css',
- '~assets/css/iconfont.css',
- 'element-ui/lib/theme-chalk/index.css'
- ],
- /*
- ** Build configuration
- */
- build: {
- /*关闭ESLint
- ** Run ESLint on save
- */
- // extend (config, { isDev, isClient }) {
- // if (isDev && isClient) {
- // config.module.rules.push({
- // enforce: 'pre',
- // test: /\.(js|vue)$/,
- // loader: 'eslint-loader',
- // exclude: /(node_modules)/
- // })
- // }
- // }
- vendor: [
- 'axios',
- 'element-ui'
- ],
- postcss: [
- require('autoprefixer')({
- browsers: ['last 3 versions']
- })
- ],
- plugins: [
- new webpack.ProvidePlugin({
- '$': 'jquery'
- })
- ]
- }
- }
|