mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
87172100c7
This option is disabled by default and won't affect exiting users. However users can easily enable this option using `nuxt.build.extractCSS` Implementation is according to: - https://github.com/vuejs/vue-loader/tree/master/docs/en/configurations - https://ssr.vuejs.org/en/css.html - https://github.com/vuejs/vue-hackernews-2.0/tree/master/build
28 lines
764 B
JavaScript
28 lines
764 B
JavaScript
module.exports = {
|
|
build: {
|
|
filenames: {
|
|
css: 'styles.[chunkhash].css', // default: common.[chunkhash].css
|
|
manifest: 'manifest.[hash].js', // default: manifest.[hash].js
|
|
vendor: 'vendor.[hash].js', // default: vendor.bundle.[hash].js
|
|
app: 'app.[chunkhash].js' // default: nuxt.bundle.[chunkhash].js
|
|
},
|
|
vendor: ['lodash'],
|
|
// Loaders config (Webpack 2)
|
|
loaders: [
|
|
{
|
|
test: /\.(png|jpg|gif|svg)$/,
|
|
loader: 'url-loader',
|
|
options: {
|
|
limit: 100000, // 100KO
|
|
name: 'img/[name].[ext]?[hash]'
|
|
}
|
|
}
|
|
],
|
|
extend (config, { dev }) {
|
|
if (dev) {
|
|
config.devtool = (dev ? 'eval-source-map' : false)
|
|
}
|
|
}
|
|
}
|
|
}
|