mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-18 06:21:26 +02:00
sections 1-10
This commit is contained in:
@@ -20,22 +20,10 @@ var webpackLoaders = [
|
||||
'eslint-loader',
|
||||
__dirname + '/lib/latex-loader',
|
||||
__dirname + '/lib/pre-loader',
|
||||
__dirname + '/lib/p-loader'
|
||||
__dirname + '/lib/p-loader',
|
||||
__dirname + '/lib/textarea-loader'
|
||||
];
|
||||
|
||||
var plugins = [];
|
||||
|
||||
// Dev mode: make certain concessions to speed up dev work.
|
||||
if(process.argv.indexOf("--prod") === -1 && process.argv.indexOf("--lint")) {
|
||||
// allow code in textareas when in dev mode:
|
||||
webpackLoaders.push(__dirname + '/lib/textarea-loader');
|
||||
}
|
||||
|
||||
// Prod mode: make sure to minify the bundle
|
||||
else if(process.argv.indexOf("--prod") > -1) {
|
||||
plugins.push(new webpack.optimize.UglifyJsPlugin());
|
||||
}
|
||||
|
||||
console.log("content for entry:", entry);
|
||||
|
||||
// And the final config that webpack will read in.
|
||||
@@ -67,6 +55,5 @@ module.exports = {
|
||||
loaders: webpackLoaders
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: plugins
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user