Skip to content

How to process file outside project directory?ย #172

@breezewish

Description

@breezewish

webpack 2.

+ Project_1
  - style.css
+ Project_2
  - node_modules
  - index.js
  - webpack.config.js
  - postcss.config.js

Directory Project_1 is shared and cannot be modified.

Inside Project_2, when referencing Project_1/style.css, Error: No PostCSS Config found in Project_1/.. is always thrown if no options is given in the loader (notice that postcss.config.js is not resolved).

And as we all known, passing options to the loader usually breaks because many loaders (for example, vue-loader) stringify the options and plugin got lost. Thus I cannot pass options to the loader either.

How can this be solved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions