mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
27 lines
597 B
JavaScript
27 lines
597 B
JavaScript
module.exports = {
|
|
build: {
|
|
filenames: {
|
|
css: 'app.css', // default: style.css
|
|
vendor: 'vendor.js', // default: vendor.bundle.js
|
|
app: 'app.js' // default: nuxt.bundle.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)
|
|
}
|
|
}
|
|
}
|
|
}
|