mirror of
				https://github.com/KevinMidboe/vue-chartjs.git
				synced 2025-10-29 18:00:20 +00:00 
			
		
		
		
	✨ Add mixins to alias
This commit is contained in:
		@@ -16,8 +16,9 @@ module.exports = {
 | 
				
			|||||||
    extensions: ['', '.js', '.vue'],
 | 
					    extensions: ['', '.js', '.vue'],
 | 
				
			||||||
    fallback: [path.join(__dirname, '../node_modules')],
 | 
					    fallback: [path.join(__dirname, '../node_modules')],
 | 
				
			||||||
    alias: {
 | 
					    alias: {
 | 
				
			||||||
      'vue': 'vue/dist/vue.js',
 | 
					      'vue': 'vue/dist/vue.common.js',
 | 
				
			||||||
      'src': path.resolve(__dirname, '../src'),
 | 
					      'src': path.resolve(__dirname, '../src'),
 | 
				
			||||||
 | 
					      'mixins': path.resolve(__dirname, '../src/mixins'),
 | 
				
			||||||
      'BaseCharts': path.resolve(__dirname, '../src/BaseCharts')
 | 
					      'BaseCharts': path.resolve(__dirname, '../src/BaseCharts')
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,9 @@
 | 
				
			|||||||
const webpack = require('webpack')
 | 
					const webpack = require('webpack')
 | 
				
			||||||
const base = require('./webpack.base.conf')
 | 
					const base = require('./webpack.base.conf')
 | 
				
			||||||
const config = require('../config')
 | 
					const config = require('../config')
 | 
				
			||||||
 | 
					var env = process.env.NODE_ENV === 'testing'
 | 
				
			||||||
 | 
					  ? require('../config/test.env')
 | 
				
			||||||
 | 
					  : config.build.env
 | 
				
			||||||
 | 
					
 | 
				
			||||||
base.entry = {
 | 
					base.entry = {
 | 
				
			||||||
  lib: './src/index.js'
 | 
					  lib: './src/index.js'
 | 
				
			||||||
@@ -19,9 +22,7 @@ var webpackConfig = Object.assign({}, base)
 | 
				
			|||||||
webpackConfig.devtool = '#source-map'
 | 
					webpackConfig.devtool = '#source-map'
 | 
				
			||||||
webpackConfig.plugins = (webpackConfig.plugins || []).concat([
 | 
					webpackConfig.plugins = (webpackConfig.plugins || []).concat([
 | 
				
			||||||
  new webpack.DefinePlugin({
 | 
					  new webpack.DefinePlugin({
 | 
				
			||||||
    'process.env': {
 | 
					    'process.env.NODE_ENV': env
 | 
				
			||||||
      NODE_ENV: '"production"'
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }),
 | 
					  }),
 | 
				
			||||||
  new webpack.optimize.UglifyJsPlugin({
 | 
					  new webpack.optimize.UglifyJsPlugin({
 | 
				
			||||||
    compress: { warnings: false }
 | 
					    compress: { warnings: false }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user