using webpack #122
This commit is contained in:
parent
b8d8f545b0
commit
52930445fc
7 changed files with 128 additions and 120 deletions
21
webpack.libs.config.js
Normal file
21
webpack.libs.config.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import OpenSCADLibrariesPlugin from './webpack-libs-plugin.js';
|
||||
|
||||
const buildMode = process.env.LIBS_BUILD_MODE || 'all';
|
||||
|
||||
/** @type {import('webpack').Configuration} */
|
||||
const config = {
|
||||
mode: 'none', // We're not actually building JS, just using webpack as a task runner
|
||||
entry: './package.json', // Dummy entry point that exists
|
||||
output: {
|
||||
path: '/tmp', // Output to temp directory
|
||||
filename: 'webpack-libs-temp.js', // This won't be used
|
||||
},
|
||||
plugins: [
|
||||
new OpenSCADLibrariesPlugin({
|
||||
buildMode: buildMode
|
||||
}),
|
||||
],
|
||||
stats: 'minimal',
|
||||
};
|
||||
|
||||
export default config;
|
||||
Loading…
Reference in a new issue