How to use the @ngtools/webpack.PathsPlugin function in @ngtools/webpack

To help you get started, we’ve selected a few @ngtools/webpack examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github abdulhaq-e / ngrx-json-api / karma.conf.js View on Github external
},

    browsers: ['Chrome'],

    port: 9018,
    runnerPort: 9101,
    colors: true,
    logLevel: karma.LOG_INFO,
    autoWatch: true,
    singleRun: true,

    webpack: {
      devtool: 'inline-source-map',
      resolve: {
        plugins: [
          new ngtools.PathsPlugin({
            tsConfigPath: './tsconfig.json'
          })
        ],
        extensions: ['.ts', '.js']
      },
      entry: {
        'tests.bundle.ts': './tests.bundle.ts'
      },
      output: {
        path: './dist.test',
        filename: '[name].bundle.js'
      },
      module: {
        rules: [{
          test: /\.js$/,
          enforce: 'pre',