Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

scripts task doesn't allow directories #32

Open
OmgImAlexis opened this issue Sep 25, 2017 · 1 comment
Open

scripts task doesn't allow directories #32

OmgImAlexis opened this issue Sep 25, 2017 · 1 comment
Labels

Comments

@OmgImAlexis
Copy link

OmgImAlexis commented Sep 25, 2017

If you add a directory in the scripts directory it skips it since you're using 'app/scripts/*.js' vs 'app/scripts/**/*.js'.

Same goes for the output.

.pipe(gulp.dest(`dist/${args.vendor}/scripts`))
@HaNdTriX
Copy link
Owner

HaNdTriX commented Sep 28, 2017

This is by design. The convention is that all your files in the root of the scripts directory create a bundle. I always create subdirectories and require their files by importing them into the root files.

src/scripts/background.js

import someFile from './someSubDir/someFile'

You can always change this convention in your tasks/script.js files.

Anyway @OmgImAlexis thanks a lot for your feedback!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants