Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var path = require('path'),
fs = require('fs'),
webpack = require("webpack"),
libPath = path.join(__dirname, 'lib'),
distPath = path.join(__dirname, 'dist'),
pkg = require('./package.json'),
cordovaLib = require('cordova').cordova_lib,
extend = require('util')._extend,
deepExtend = require('deep-extend'),
CSON = require('cson'),
projectConfig = deepExtend(CSON.requireFile('./config/config.default.cson'), CSON.requireFile('./config/config.cson')),
webpackConfig = require('./webpack.config.js'),
HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = extend(webpackConfig, {
plugins: [
new HtmlWebpackPlugin({
filename: 'index.html',
pkg: pkg,
serviceWorkerEnabled: projectConfig.serviceWorker.enabled,
appVersion: getAppVersion(),
template: path.join(libPath, 'index.html')
}),
new webpack.ContextReplacementPlugin(/moment\/locale$/, getRegexAutorizedLanguages()),
new webpack.DefinePlugin({
IS_PROD: true
}),
var path = require('path'),
fs = require('fs'),
_ = require('lodash'),
webpack = require("webpack"),
libPath = path.join(__dirname, 'lib'),
wwwPath = path.join(__dirname, 'www'),
pkg = require('./package.json'),
cordovaLib = require('cordova').cordova_lib,
deepExtend = require('deep-extend'),
CSON = require('cson'),
projectConfig = deepExtend(CSON.requireFile('./config/config.default.cson'), CSON.requireFile('./config/config.cson')),
HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: path.join(libPath, 'index.coffee'),
output: {
path: wwwPath,
filename: 'bundle-[hash:6].js'
},
module: {
noParse: [/autoit.js/],
loaders: [{
test: /[\/]highlight\.js$/,
loader: 'expose?hljs'
}, {
var path = require('path');
var webpack = require('webpack');
var ionicWebpackFactory = require(process.env.IONIC_WEBPACK_FACTORY);
var deepExtend = require('deep-extend');
var cordovaLib = require('cordova').cordova_lib;
var CSON = require('cson');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ModuleConcatPlugin = require('webpack/lib/optimize/ModuleConcatenationPlugin');
var defaultConfig = CSON.requireFile('./src/config.default.cson');
var configOverwrite = CSON.requireFile('./config/config.cson');
const RawConfig = deepExtend(defaultConfig, configOverwrite);
var prodPlugins = [];
if (process.env.IONIC_ENV === 'prod') {
prodPlugins.push(new ModuleConcatPlugin());
}
const webpackConfig = {
entry: process.env.IONIC_APP_ENTRY_POINT,
output: {
path: '{{BUILD}}',
publicPath: 'build/',
filename: '[name].js',
devtoolModuleFilenameTemplate: ionicWebpackFactory.getSourceMapperFunction(),
var path = require('path');
var webpack = require('webpack');
var ionicWebpackFactory = require(process.env.IONIC_WEBPACK_FACTORY);
var deepExtend = require('deep-extend');
var cordovaLib = require('cordova').cordova_lib;
var CSON = require('cson');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ModuleConcatPlugin = require('webpack/lib/optimize/ModuleConcatenationPlugin');
var defaultConfig = CSON.requireFile('./src/config.default.cson');
var configOverwrite = CSON.requireFile('./config/config.cson');
const RawConfig = deepExtend(defaultConfig, configOverwrite);
var prodPlugins = [];
if (process.env.IONIC_ENV === 'prod') {
prodPlugins.push(new ModuleConcatPlugin());
}
const webpackConfig = {
entry: process.env.IONIC_APP_ENTRY_POINT,
output: {
path: '{{BUILD}}',
publicPath: 'build/',
filename: '[name].js',
devtoolModuleFilenameTemplate: ionicWebpackFactory.getSourceMapperFunction(),
},