mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 06:35:10 +00:00
15 lines
341 B
JavaScript
15 lines
341 B
JavaScript
const hooks = require('require-extension-hooks')
|
|
|
|
// Setup browser environment
|
|
require('browser-env')()
|
|
|
|
// Setup vue files to be processed by `require-extension-hooks-vue`
|
|
hooks('vue')
|
|
.plugin('vue')
|
|
.push()
|
|
|
|
// Setup vue and js files to be processed by `require-extension-hooks-babel`
|
|
hooks(['vue', 'js'])
|
|
.plugin('babel')
|
|
.push()
|