How to use the kpc/src/webpack.config.module function in kpc

To help you get started, we’ve selected a few kpc 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 Javey / vdt.js / site / webpack.config.js View on Github external
var webpackConfig = require('kpc/src/webpack.config');
var path = require('path');
var webpack = require('webpack');
// var HtmlWebpackPlugin = require('html-webpack-plugin');

webpackConfig.entry.all = path.resolve(__dirname, './js/app/routes.js');
webpackConfig.output.path = path.resolve(__dirname, './dist');
// webpackConfig.output.filename = '[name].[chunkhash:8].js';
process.disableHardSource = true;
process.disableHMR = true;
webpackConfig.module.rules.push({
    test: /\.json$/,
    loader: 'json-loader'
});
webpackConfig.module.noParse = [
    /node_modules\/benchmark/
];
webpackConfig.module.rules[0].exclude = [
    /node_modules(?!([\/\\]kpc)|([\/\\]misstime))/, 
    /node_modules[\/\\]kpc.*lib/
];
// webpackConfig.plugins = webpackConfig.plugins.filter(item => {
    // return !(item instanceof webpack.optimize.UglifyJsPlugin);
// });
// webpackConfig.plugins.push(
    // new webpack.ProvidePlugin({
        // Intact: 'kpc/src/js/lib/intact',
        // _: 'kpc/src/js/lib/underscore',
    // }),
    // new HtmlWebpackPlugin({
        // template: path.resolve(__dirname, './index.html'),
github Javey / vdt.js / site / webpack.config.js View on Github external
var webpackConfig = require('kpc/src/webpack.config');
var path = require('path');
var webpack = require('webpack');
// var HtmlWebpackPlugin = require('html-webpack-plugin');

webpackConfig.entry.all = path.resolve(__dirname, './js/app/routes.js');
webpackConfig.output.path = path.resolve(__dirname, './dist');
// webpackConfig.output.filename = '[name].[chunkhash:8].js';
process.disableHardSource = true;
process.disableHMR = true;
webpackConfig.module.rules.push({
    test: /\.json$/,
    loader: 'json-loader'
});
webpackConfig.module.noParse = [
    /node_modules\/benchmark/
];
webpackConfig.module.rules[0].exclude = [
    /node_modules(?!([\/\\]kpc)|([\/\\]misstime))/, 
    /node_modules[\/\\]kpc.*lib/
];
// webpackConfig.plugins = webpackConfig.plugins.filter(item => {
    // return !(item instanceof webpack.optimize.UglifyJsPlugin);
// });
// webpackConfig.plugins.push(
    // new webpack.ProvidePlugin({
        // Intact: 'kpc/src/js/lib/intact',
github Javey / vdt.js / site / webpack.config.js View on Github external
var webpack = require('webpack');
// var HtmlWebpackPlugin = require('html-webpack-plugin');

webpackConfig.entry.all = path.resolve(__dirname, './js/app/routes.js');
webpackConfig.output.path = path.resolve(__dirname, './dist');
// webpackConfig.output.filename = '[name].[chunkhash:8].js';
process.disableHardSource = true;
process.disableHMR = true;
webpackConfig.module.rules.push({
    test: /\.json$/,
    loader: 'json-loader'
});
webpackConfig.module.noParse = [
    /node_modules\/benchmark/
];
webpackConfig.module.rules[0].exclude = [
    /node_modules(?!([\/\\]kpc)|([\/\\]misstime))/, 
    /node_modules[\/\\]kpc.*lib/
];
// webpackConfig.plugins = webpackConfig.plugins.filter(item => {
    // return !(item instanceof webpack.optimize.UglifyJsPlugin);
// });
// webpackConfig.plugins.push(
    // new webpack.ProvidePlugin({
        // Intact: 'kpc/src/js/lib/intact',
        // _: 'kpc/src/js/lib/underscore',
    // }),
    // new HtmlWebpackPlugin({
        // template: path.resolve(__dirname, './index.html'),
    // }),
// );