@holocentric/angular-webpack-plugin-style-urls
v4.29.1-alpha.0
Published
Webpack plugin for Angular apps to handle style URLs
Readme
@holocentric/webpack-plugin-style-urls
This package provides a Webpack plugin for Angular applications to ensure that styles URLs are relative to the root of the project.
Features
- StylesUrlRelativeToRootWebpackPlugin to ensure that styles URLs are relative to the root of the project, due to the current nginx routing configuration.
Installation
npm install @holocentric/webpack-plugin-style-urlsUsage
Import and use the provided plugins or utilities in your Webpack configuration:
const StyleUrlsRelativeToRootWebpackPlugin = require('@holocentric/angular-webpack-plugin-style-urls');
module.exports = {
// ...your webpack config
plugins: [
new StyleUrlsRelativeToRootWebpackPlugin({ appName: 'your-app-name' }),
// other plugins
],
};