Skip to content

Commit

Permalink
Merge pull request #4 from akosarek/master
Browse files Browse the repository at this point in the history
Extension Directory Upgrade
  • Loading branch information
caseygibbs authored May 15, 2019
2 parents e1c946c + da3f26c commit 1e80da2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/frontend/assets/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ const webpack = require("webpack")
const CopyWebpackPlugin = require("copy-webpack-plugin")
const TerserPlugin = require("terser-webpack-plugin")
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
const { lstatSync, readdirSync } = require('fs')

const fs = require("fs")
let extension_list = fs.readdirSync(path.join(__dirname, "./js/extensions/"))
const isDirectory = source => lstatSync(source).isDirectory()
const getDirectories = source =>
readdirSync(source).map(name => path.join(source, name)).filter(isDirectory)

let extension_list = getDirectories(path.join(__dirname, "./js/extensions/"))

let config = {
entry: [
Expand Down

0 comments on commit 1e80da2

Please sign in to comment.