Skip to content

Issue with npm script not running on Windows OS #28

@leepowelldev

Description

@leepowelldev

Hi. We have the latest version of this plugin running on our webpack 5 config:

// webpack.config.js

new WebpackShellPlugin({
  onBuildStart: {
    scripts: ['npm run generateTypedCss'],
    blocking: true,
    parallel: false
  }
}),
// package.json

"scripts": {
  "generateTypedCss": "tcm Content/scripts"
}

And it runs fine on Mac OS, however on Windows OS it doesn't run the npm script. We get the 'Executing pre-build scripts', but then it goes straight into the webpack build with no output. On Mac OS we get the full output of typed-css-modules.

I don't suppose you have any ideas on what could be happening? There's no errors, and no other logging to give us an idea of what the issue is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions