UNPKG

v-show-slide

Version:

Vue.js directive for animating element to and from height: auto in a sliding motion

51 lines (49 loc) 1.08 kB
const path = require('path') const VueLoaderPlugin = require('vue-loader/lib/plugin') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: { index: path.resolve(__dirname, './src/demo.ts'), }, output: { path: path.resolve(__dirname, './dist'), filename: 'demo.min.js', }, module: { rules: [ { test: /\.vue$/, loader: 'vue-loader', }, { test: /\.tsx?$/, loader: 'ts-loader', exclude: [/node_modules/], options: { appendTsSuffixTo: [/\.vue$/], }, }, { test: /\.scss$/, use: ['vue-style-loader', 'css-loader', 'sass-loader'], }, ], }, resolve: { extensions: ['.ts', '.js', '.vue', '.json'], alias: { vue$: 'vue/dist/vue.esm.js', }, }, plugins: [ new VueLoaderPlugin(), new HtmlWebpackPlugin({ template: path.resolve(__dirname, './src/index.html'), }), ], devServer: { contentBase: path.resolve(__dirname, './dist'), port: 8080, hot: true, }, }