Add webpack-dev-server
This commit is contained in:
parent
e7610b0e4a
commit
716ac36031
4 changed files with 45 additions and 18 deletions
19
webpack.dev.js
Normal file
19
webpack.dev.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
const path = require("path");
|
||||
const common = require("./webpack.common");
|
||||
const merge = require("webpack-merge");
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = merge(common, {
|
||||
mode: "development",
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
libraryTarget: 'amd-require'
|
||||
},
|
||||
plugins: [
|
||||
new CopyPlugin([{
|
||||
from: '**/*',
|
||||
to: '.'
|
||||
}])
|
||||
]
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue