From 1d99efbcd8a52234f78288c1f8d7688ebcfd6d5e Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Wed, 12 Oct 2016 20:58:03 -0400 Subject: [PATCH 1/2] Copy Assets To Playground With Webpack --- webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 6d08c73ac..68d377b62 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -52,6 +52,7 @@ module.exports = [ entry: { 'dist': './src/index.js' }, + output: { library: 'VirtualMachine', libraryTarget: 'commonjs2', @@ -108,6 +109,8 @@ module.exports = [ to: 'media' }, { from: 'node_modules/highlightjs/styles/zenburn.css' + }, { + from: 'assets' }]) ]) }) From ebe8f6323255afb4ecf2343dafd057a8251944e2 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Thu, 13 Oct 2016 20:01:17 -0400 Subject: [PATCH 2/2] Fix --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 68d377b62..d46f55bf6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -110,7 +110,8 @@ module.exports = [ }, { from: 'node_modules/highlightjs/styles/zenburn.css' }, { - from: 'assets' + from: 'assets', + to: 'assets' }]) ]) })