Skip to content

Commit a842f31

Browse files
author
Baitu Huang
committed
remove test dep
1 parent bf6c11d commit a842f31

10 files changed

+3617
-1794
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ node_js:
77
env:
88
- TEST=true
99
install:
10-
- npm install
10+
- cd test && npm install && cd .. && npm install
1111
script:
1212
- npm test

lib/plugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const webpack = require('webpack')
21
const assert = require('assert')
32

43
const {
@@ -126,6 +125,7 @@ module.exports = class VueFlagsWebpackPlugin {
126125
})
127126

128127
// apply flag variable plugin
128+
const webpack = require('webpack')
129129
const constPlugin = this.pluginOptions.watch ? new webpack.ProvidePlugin({
130130
[this.pluginOptions.namespace]: RESOLVED_FLAGS_PATH
131131
}) : new webpack.DefinePlugin({

0 commit comments

Comments
 (0)