1.0.7 • Published 4 years ago

html-webpack-assets-path-plugin v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Html Webpack Assets Path Plugin

Alert js or css path in the html file.Works with newer html-webpack-plugin versions

npm version Build Status js-semistandard-style

Configuration

  1. Install via npm i -D html-webpack-assets-path-plugin
  2. Add to your webpack config AFTER HtmlWebpackPlugin
    var HtmlWebpackAssetsPathPlugin = require('html-webpack-assets-path-plugin');
    ...
    plugins: [
        new HtmlWebpackPlugin({
            filename: join(OUTPUT_DIR, './dist/index.html'),
            // ..
        }),
        new HtmlWebpackAssetsPathPlugin({
            // specify css path
            cssPath: './dist'
            // specify js path
            jsPath: './dist'
        })
    ]

Testing

Testing is done via ts-node and mocha. Test files can be found in /test. Just run npm test after installing to see the tests run.

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago