Move almada and require.js from source control to npm

This commit is contained in:
grafixeyehero 2019-10-27 16:55:18 +03:00
parent b6db366d0e
commit 651a53d64a
6 changed files with 24 additions and 1028 deletions

View file

@ -1,6 +1,10 @@
const path = require("path");
const { CleanWebpackPlugin} = require("clean-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
// assets.js
const Assets = require('./assets');
module.exports = {
context: path.resolve(__dirname, "src"),
entry: "./bundle.js",
@ -10,9 +14,18 @@ module.exports = {
]
},
plugins: [
new CleanWebpackPlugin(),
new CopyPlugin([{
from: "**/*",
to: "."
}])
}]),
new CopyPlugin(
Assets.map(asset => {
return {
from: path.resolve(__dirname, `./node_modules/${asset}`),
to: path.resolve(__dirname, './dist/bower_components')
};
})
)
]
};