UNPKG

@kddy/vue-scrollactive

Version:

Lightweight and simple to use vue component that highlights menu items as you scroll the page, also scrolling to target section when clicked.

43 lines (41 loc) 947 B
const path = require('path'); const VueLoaderPlugin = require('vue-loader/lib/plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { mode: 'development', entry: path.resolve(__dirname, '../src/sandbox/sandbox.js'), output: { path: path.resolve(__dirname, '../dist'), }, devtool: 'inline-source-map', module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: ['babel-loader'], }, { test: /\.vue$/, loader: 'vue-loader', }, { test: /\.css$/, use: ['vue-style-loader', 'css-loader'], }, { test: /\.scss$/, use: ['style-loader', 'css-loader', 'sass-loader'], }, ], }, plugins: [ new VueLoaderPlugin(), new HtmlWebpackPlugin({ template: 'src/sandbox/index.html', }), ], devServer: { contentBase: path.join(__dirname, '../dist'), }, };