How to use aurelia-webpack-plugin - 6 common examples

To help you get started, we’ve selected a few aurelia-webpack-plugin 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 aurelia / templating-router / karma.conf.js View on Github external
},
      devtool: 'cheap-module-eval-source-map',
      module: {
        rules: [
          {
            test: /\.ts$/,
            loader: 'ts-loader',
            exclude: /node_modules/
          },
          {
            test: /\.html$/,
            loader: 'html-loader'
          }
        ]
      },
      plugins: [new AureliaPlugin()]
    },
    mime: {
      'text/x-typescript': ['ts']
    },
    reporters: ['mocha', 'progress'],
    webpackServer: { noInfo: config.noInfo },
    browsers: ['Chrome'],
    customLaunchers: {
      ChromeDebugging: {
        base: 'Chrome',
        flags: ['--remote-debugging-port=9333'],
        debug: true
      }
    },
    singleRun: false
  });
github michaelbull / aurelia-hacker-news / webpack.config.js View on Github external
]
        },

        resolve: {
            extensions: [
                '.js',
                '.ts'
            ],
            modules: [
                'node_modules',
                srcDir
            ]
        },

        plugins: [
            new AureliaPlugin(),
            new HtmlWebpackPlugin({
                template: 'index.ejs',
                favicon: path.resolve(assetsDir, 'favicon.ico')
            })
        ],

        devServer: {
            stats: 'errors-only'
        }
    };

    switch (args.mode) {
        case 'development':
            config.devtool = 'inline-source-map';
            break;
github michaelbull / aurelia-typescript-webpack-starter / webpack.config.ts View on Github external
]
        },

        resolve: {
            extensions: [
                '.js',
                '.ts'
            ],
            modules: [
                'node_modules',
                srcDir
            ]
        },

        plugins: [
            new AureliaPlugin(),
            new HtmlWebpackPlugin({
                template: 'index.html'
            })
        ],

        devServer: {
            stats: 'errors-only'
        }
    };

    if (args.mode === 'development') {
        config.devtool = 'inline-source-map';
    }

    return config;
}
github aurelia-contrib / aurelia-plugin-skeleton-ts-webpack / webpack.config.ts View on Github external
test: /[\/\\]node_modules[\/\\]bluebird[\/\\].+\.js$/i,
          use: [load.expose]
        },
        {
          test: /\.(jpe?g|png|gif|svg|tff|eot|otf|woff2?)$/i,
          use: [load.file]
        }
      ]
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: 'demo/index.ejs',
        metadata: { title: pkg.name, server, baseUrl, debug: !production },
        minify: !!production && minifyOpts
      }),
      new AureliaPlugin(),
      new webpack.ProvidePlugin({ Promise: 'bluebird' }),
      new ModuleDependenciesPlugin({ 'aurelia-testing': ['./compile-spy', './view-spy'] })
    ]
  };
}
github aurelia-contrib / aurelia-plugin-skeleton-ts-webpack / webpack.config.ts View on Github external
},
        {
          test: /\.(jpe?g|png|gif|svg|tff|eot|otf|woff2?)$/i,
          use: [load.file]
        }
      ]
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: 'demo/index.ejs',
        metadata: { title: pkg.name, server, baseUrl, debug: !production },
        minify: !!production && minifyOpts
      }),
      new AureliaPlugin(),
      new webpack.ProvidePlugin({ Promise: 'bluebird' }),
      new ModuleDependenciesPlugin({ 'aurelia-testing': ['./compile-spy', './view-spy'] })
    ]
  };
}

aurelia-webpack-plugin

A plugin for webpack that enables bundling Aurelia applications.

MIT
Latest version published 1 year ago

Package Health Score

57 / 100
Full package analysis