diff --git a/package.json b/package.json index 191b393e..790995bd 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "A webpack plugin for the Monaco Editor", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "./node_modules/.bin/webpack --config test/webpack.config.js" }, "repository": { "type": "git", diff --git a/test/webpack.config.js b/test/webpack.config.js index b7877157..de575ad0 100644 --- a/test/webpack.config.js +++ b/test/webpack.config.js @@ -4,6 +4,7 @@ const path = require('path'); module.exports = { mode: 'development', entry: './index.js', + context: __dirname, output: { path: path.resolve(__dirname, 'dist'), filename: 'app.js' @@ -17,4 +18,4 @@ module.exports = { plugins: [ new MonacoWebpackPlugin() ] -}; \ No newline at end of file +};