Skip to content

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

webpack-compiler

Build StatusNPM versionNPM downloads

varpath=require('path')varwebpackCompiler=require('webpack-compiler')varoutput=webpackCompiler({filepath: path.join(__dirname,'test/commonjs/index.js'),webpack: webpack,webpackConfig: {module: {loaders: [{test: /\.css$/,loader: "style!css"}]}},content: fs.readFileSync(jspath).toString()})

output.code:test/commonjs/index.js.output.jsoutput.stats:http://webpack.github.io/docs/node.js-api.html#statsoutput.stats.compilation.fileDependencies:

["/Users/nimo/Documents/git/markrun-compile-webpack/node_modules/css-loader/lib/css-base.js","/Users/nimo/Documents/git/markrun-compile-webpack/node_modules/style-loader/addStyles.js","/Users/nimo/Documents/git/markrun-compile-webpack/test/commonjs/a.css","/Users/nimo/Documents/git/markrun-compile-webpack/test/commonjs/a.js","/Users/nimo/Documents/git/markrun-compile-webpack/test/commonjs/b.js","/Users/nimo/Documents/git/markrun-compile-webpack/test/commonjs/index.js"]

About

markrun compile webpack

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages