Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

vindaloopoo/webpack-kmt-resolve-url-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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: {
      // where to rewrite kmt urls to
      baseUrl: "http://kmt-instance-uri",
      sourceMap: true,
      // specify the location to the layout directory
      root: path.resolve(__dirname, "../view/layout")
    }
  }

About

A Webpack loader for resolving KMT urls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published