mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
remove condition because dev is always true
Signed-off-by: Clark Du <clark.duxin@gmail.com>
This commit is contained in:
parent
36a553236a
commit
1e0c807341
@ -1,15 +1,15 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
build: {
|
build: {
|
||||||
filenames: {
|
filenames: {
|
||||||
css: 'styles.[chunkhash].css', // default: common.[chunkhash].css
|
css: 'styles.[chunkhash].css', // default: common.[chunkhash].css
|
||||||
manifest: 'manifest.[hash].js', // default: manifest.[hash].js
|
manifest: 'manifest.[hash].js', // default: manifest.[hash].js
|
||||||
vendor: 'vendor.[hash].js', // default: vendor.bundle.[hash].js
|
vendor: 'vendor.[hash].js', // default: vendor.bundle.[hash].js
|
||||||
app: 'app.[chunkhash].js' // default: nuxt.bundle.[chunkhash].js
|
app: 'app.[chunkhash].js' // default: nuxt.bundle.[chunkhash].js
|
||||||
},
|
},
|
||||||
vendor: ['lodash'],
|
vendor: ['lodash'],
|
||||||
extend (config, { dev }) {
|
extend (config, { dev }) {
|
||||||
if (dev) {
|
if (dev) {
|
||||||
config.devtool = (dev ? 'eval-source-map' : false)
|
config.devtool = 'eval-source-map'
|
||||||
}
|
}
|
||||||
const urlLoader = config.module.rules.find((loader) => loader.loader === 'url-loader')
|
const urlLoader = config.module.rules.find((loader) => loader.loader === 'url-loader')
|
||||||
// Increase limit to 100KO
|
// Increase limit to 100KO
|
||||||
|
Loading…
Reference in New Issue
Block a user