0.0.0-alpha2 • Published 5 years ago

@kingsquare/webpack-kmt-resolve-url-loader v0.0.0-alpha2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

A Webpack loader for resolving KMT urls

Using webpack-dev-server with KMT you need to fix some urls else they will not work... We actually need to emulate the framework within the webpack-dev-server.

hence this...

IMPORTANT: This is only needed for development!

WARNING: This loader will not (yet) work for encore dev-server as it works in the reverse... this would require something that redirects back to the referrer...? In any case worthy of an issue, to be resolved ;-)

Usage

Add the loader

yarn add @kingsquare/webpack-kmt-resolve-url-loader

Then after the resolve-url-loader add the kmt-resolve-url-loader

  {
    loader: "kmt-resolve-url-loader",
    options: {
      sourceMap: true,
      root: path.resolve(__dirname, "../view/layout")
    }
  }