1
0
Fork 0

tada: First commit

This commit is contained in:
Joost De Cock 2018-07-21 15:34:46 +02:00
parent e02c8badfe
commit cefae51c06
9 changed files with 6497 additions and 3 deletions

View 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'
},
]
}
};