diff --git a/test/fixtures/with-config/assets/app.css b/test/fixtures/with-config/assets/app.css new file mode 100755 index 0000000000..f69fcd8bbc --- /dev/null +++ b/test/fixtures/with-config/assets/app.css @@ -0,0 +1,3 @@ +.global-css-selector { + color: red; +} diff --git a/test/fixtures/with-config/nuxt.config.js b/test/fixtures/with-config/nuxt.config.js index f6ef845ad5..b1aec4f60d 100644 --- a/test/fixtures/with-config/nuxt.config.js +++ b/test/fixtures/with-config/nuxt.config.js @@ -31,5 +31,8 @@ module.exports = { extend (config, options) { config.devtool = 'nosources-source-map' } - } + }, + css: [ + {src: '~/assets/app.css'} + ] } diff --git a/test/with-config.test.js b/test/with-config.test.js index d9b4845f52..862bbf4901 100644 --- a/test/with-config.test.js +++ b/test/with-config.test.js @@ -24,6 +24,11 @@ test('/', async t => { t.true(html.includes('
Made by Nuxt.js team
'))