我是webpack的新手,想知道如何使用nuxt.js
框架设置多个入口点。
我正在查看最新的Webpack文档https://webpack.js.org/concepts/entry-points/#object-syntax
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'nuxt-boilerplate',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: 'Meming'
}
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
},
/*
** Customize the progress bar color
*/
loading: { color: '#3B8070' },
/*
** Build configuration
*/
build: {
// analyze: true,
/*
*
** Run ESLint on save
*/
extend(config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
// loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
},
srcDir: 'src/',
rootDir: './'
}
任何提示将不胜感激:)