These are chat archives for AngularClass/angular2-webpack-starter

11th
Feb 2017
Aiiua
@aiiua
Feb 11 2017 03:55
hello
GET file:///home/lethe/work/xinhua-crm/dist/css/img/84d4e1f7.iconfont.woff net::ERR_FILE_NOT_FOUND

After the implementation of the package command, why woffcan not call

loader

{
        test: /\.(png|jpg|jpeg|gif|eot|ttf|woff|woff2|svg|svgz)(\?.+)?$/,
        exclude: /favicon\.png$/,
        use: [{
          loader: 'file-loader',
          options: {
            limit: 10000,
            name: 'static/[name].[ext]?[hash]'
          }
        }]
      },

output

path: resolve(__dirname, 'dist'),
    filename: options.dev ? '[name].js' : '[name].js?[chunkhash]',
    chunkFilename: '[id].js?[chunkhash]',
    publicPath: options.dev ? '/assets/' : publicPath