dev-code-loader
v1.0.5
Published
webpack dev mock loader
Downloads
1
Readme
dev-code-loader
Write the development code in a commented manner
Usage
Step 1:Install
npm install dev-code-loader --save
Step 2: config webpack.config.js
require('dev-code-loader');
...
loaders: [
{
test: /\.js$/,
loader: 'other-loader!dev-code-loader'
}
]
...
Then joy your life.
Examples
[source code]
// devCode const a = 1;
const a = 2;
[Compile code]
const a = 1;
[source code]
// devCode
const a = 2;
const b = 1;
[Compile code]
const b = 1;