mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-01 05:54:03 +03:00
f5e3e25dc0
- change currentSelection to mutableValue - change currentOptions to mutableOptions - change showLoading to mutableLoading - add default onChange function that emits an input event - allows the use of v-model syntax on the component - since spies on props throw warnings because they are now immutable, refactor tests so spies aren't required todo: - update docs - 1 failing test from inject-loader issue
71 lines
1.6 KiB
JavaScript
71 lines
1.6 KiB
JavaScript
var path = require('path')
|
|
var config = require('../config')
|
|
var utils = require('./utils')
|
|
var projectRoot = path.resolve(__dirname, '../')
|
|
|
|
module.exports = {
|
|
entry: {
|
|
app: './src/dev.js'
|
|
},
|
|
output: {
|
|
path: config.build.assetsRoot,
|
|
publicPath: config.build.assetsPublicPath,
|
|
filename: '[name].js'
|
|
},
|
|
resolve: {
|
|
extensions: ['', '.js', '.vue'],
|
|
fallback: [path.join(__dirname, '../node_modules')],
|
|
alias: {
|
|
'src': path.resolve(__dirname, '../src'),
|
|
'assets': path.resolve(__dirname, '../docs/assets'),
|
|
'mixins': path.resolve(__dirname, '../src/mixins'),
|
|
'components': path.resolve(__dirname, '../src/components'),
|
|
'vue$': 'vue/dist/vue.common.js',
|
|
}
|
|
},
|
|
resolveLoader: {
|
|
fallback: [path.join(__dirname, '../node_modules')]
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.vue$/,
|
|
loader: 'vue'
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
loader: 'babel',
|
|
include: projectRoot,
|
|
exclude: /node_modules/
|
|
},
|
|
{
|
|
test: /\.json$/,
|
|
loader: 'json'
|
|
},
|
|
{
|
|
test: /\.html$/,
|
|
loader: 'vue-html'
|
|
},
|
|
{
|
|
test: /\.(png|jpe?g|gif)(\?.*)?$/,
|
|
loader: 'url',
|
|
query: {
|
|
limit: 10000,
|
|
name: utils.assetsPath('img/[name].[hash:7].[ext]')
|
|
}
|
|
},
|
|
{
|
|
test: /\.(woff2?|eot|ttf|otf|svg)(\?.*)?$/,
|
|
loader: 'url',
|
|
query: {
|
|
limit: 10000,
|
|
name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
|
|
}
|
|
}
|
|
]
|
|
},
|
|
vue: {
|
|
loaders: utils.cssLoaders()
|
|
}
|
|
}
|