Remove "dist" string from build with Webpack

1

I created a rule in my%% archives to be able to work with fonts within my webpack.config.js , but when I do scss to output build to load the file it stays as:

/distfonts/minha_font.woff

Since the folder is only string

Rule used in fonts/minha_font.woff :

{
  test: /\.(eot|svg|ttf|woff|woff2)$/i,
  loader: 'file-loader?name=fonts/[name].[ext]'
},

The current output is:

@font-face {
    font-family: hk_groteskmedium;
    src: url(/distfonts/hkgrotesk-medium-webfont.woff2) 
    format("woff2"),url(/distfonts/hkgrotesk-medium-webfont.woff) 
    format("woff");
    font-weight: 400;
    font-style: normal
}

The correct output would be just webpack

    
asked by anonymous 18.07.2017 / 21:48

0 answers