1
0
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:
Pomax
2017-02-15 16:00:02 -08:00
parent badb1ebed3
commit e9dfc48b89
25 changed files with 1762 additions and 1056 deletions

View File

@@ -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
}
};