mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
Add .coffee extensions for nuxt and webpack
This commit is contained in:
parent
202a84f203
commit
f74457c9c5
@ -20,8 +20,10 @@ module.exports = {
|
|||||||
/*
|
/*
|
||||||
** Build configuration
|
** Build configuration
|
||||||
*/
|
*/
|
||||||
|
extensions: ['coffee'],
|
||||||
build: {
|
build: {
|
||||||
extend (config, ctx) {
|
extend (config, ctx) {
|
||||||
|
config.resolve.extensions.push('.ts')
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: /\.coffee$/,
|
test: /\.coffee$/,
|
||||||
loader: 'coffee-loader'
|
loader: 'coffee-loader'
|
||||||
|
Loading…
Reference in New Issue
Block a user