tada: First commit
This commit is contained in:
parent
e02c8badfe
commit
cefae51c06
9 changed files with 6497 additions and 3 deletions
38
packages/plugin-cutonfold/webpack.config.js
Normal file
38
packages/plugin-cutonfold/webpack.config.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
const path = require('path');
|
||||
var webpack = require('webpack');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
target: 'web',
|
||||
entry: './src/index.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist/browser'),
|
||||
filename: 'bundle.js',
|
||||
libraryTarget: 'var',
|
||||
library: 'freesewing_macro_cutonfold'
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
VERSION: JSON.stringify(require("./package.json").version)
|
||||
})
|
||||
],
|
||||
module: {
|
||||
rules:[
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['@babel/preset-env']
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /\.txt$/,
|
||||
exclude: /node_modules/,
|
||||
use: 'raw-loader'
|
||||
},
|
||||
]
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue