Skip to content

Paredit Webpack instructions

Mike Fikes edited this page Jun 11, 2019 · 4 revisions

Paredit's JavaScript is generated from NPM using WebPack according to https://clojurescript.org/guides/webpack

This page describes the file setup used.

webpack.config.js:

module.exports = {
  entry: './src/js/index.js',
  output: {
    filename: 'paredit_bundle.js'
  }
}

yarn add paredit.js

src/js/index.js:

import paredit from 'paredit.js';
window.paredit = paredit;
Clone this wiki locally