webpack-add-dependency-plugin
Add dependencies to webpack dev process to watch
Last updated 6 months ago by bebraw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install webpack-add-dependency-plugin 
SYNC missed versions from official npm registry.

webpack-add-dependency-plugin

In case you are including files to a webpack build indirectly, i.e. through mini-html-webpack-plugin, then it's likely webpack build process won't be aware of them while you are developing and running the project through webpack-dev-server or a similar solution. webpack-add-dependency-plugin solves this issue by letting you make webpack aware of these files.

Example:

import { AddDependencyPlugin } from "webpack-add-dependency-plugin";

module.exports = {
  ...
  plugins: [new AddDependencyPlugin({ path: "./templates/page.html" })],
};

Most likely you'll generate these declarations programmatically using tools like glob and webpack-merge but above should give you idea of the basic API.

Current Tags

  • 0.1.2                                ...           latest (6 months ago)

3 Versions

  • 0.1.2                                ...           6 months ago
  • 0.1.1                                ...           6 months ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |