Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Fontgen runs two times when used with ExtractText #25

@sergeymorkovkin

Description

@sergeymorkovkin

Here is code snippet to test. Function output should be merged into webpack config:

`
export const plugins = {
HtmlPlugin: require('html-webpack-plugin'),
ExtractTextPlugin: require('extract-text-webpack-plugin'),
};

// Font generator
//
export const fontgen = () => {

const extractFontCss = new plugins.ExtractTextPlugin('2', 'assets/css/[id].[contenthash].icons.css');

return {
module: {
loaders: [{
test: /icons.json$/,
loader: extractFontCss.extract('vue-style', 'css!fontgen?fileName=assets/fonts/[fontname].[hash][ext]'),
}],
},
plugins: [
extractFontCss
]
};

};
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions