Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack doesn't compile all ts files in src folder #26

Closed
MaskyS opened this issue Dec 18, 2020 · 1 comment
Closed

Webpack doesn't compile all ts files in src folder #26

MaskyS opened this issue Dec 18, 2020 · 1 comment

Comments

@MaskyS
Copy link

MaskyS commented Dec 18, 2020

Hey @chibat, thank you for creating this template, really helps code extensions faster. Today I noticed as I coded up a few more ts files, that they weren't compiled to js. I got it to work by adding more entries in webpack.common.js:

module.exports = {
    entry: {
        popup: path.join(__dirname, srcDir + 'popup.ts'),
        options: path.join(__dirname, srcDir + 'options.ts'),
        background: path.join(__dirname, srcDir + 'background.ts'),
        home: path.join(__dirname, srcDir + 'home.ts'), // ! 
        utils: path.join(__dirname, srcDir + 'utils.ts') // !

But this seems rather inefficient. How can we direct it to compile all files in the folder without manually specifying each of them?

@banjo
Copy link
Contributor

banjo commented Jan 16, 2021

Yeah, I got that issue too. I added a pull request that fixed it!

@chibat chibat closed this as completed in b544390 Jan 17, 2021
chibat added a commit that referenced this issue Jan 17, 2021
Fixes #26 - auto import all files for webpack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants