forked from gs-shop/vue-slick-carousel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
49 lines (48 loc) · 1.21 KB
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const marked = require('marked')
const Prism = require('prismjs')
const loadLanguages = require('prismjs/components/')
loadLanguages(['bash'])
module.exports = {
pages: {
index: {
entry: './demo/main.js',
template: './demo/template.html',
title: '🚥 Vue Slick Carousel with True SSR Written for Faster Luxstay',
},
},
publicPath: '.',
chainWebpack: config => {
config.module
.rule('md')
.test(/\.md/)
.use('html-loader')
.loader('html-loader')
.end()
.use('markdown-loader')
.loader('markdown-loader')
.options({
renderer: new marked.Renderer(),
highlight: function(code, lang) {
return Prism.highlight(code, Prism.languages[lang], lang)
},
gfm: true,
})
},
configureWebpack: {
devtool: 'source-map',
output: {
libraryExport: 'default',
},
plugins: [
new CopyWebpackPlugin([
{
from: path.join(__dirname, 'src/slick-theme.css'),
to: path.join(__dirname, 'dist/vue-slick-carousel-theme.css'),
},
]),
],
},
css: { extract: true },
}